You can chop onions in a food processor, but the pieces will not be uniform in size. You must use the pulse setting to avoid overprocessed onions that will produce an off-flavor. You should pulse no more than 7 times to avoid making off-flavors.