I had read that fruit flies like vinegar (not balsamic), so if you put out a shallow bowl of white vinegar and move the fruit or tomatoes to the pantry for a few days, the fruit files will be drawn into it and eventually drown. Well, my fruit flies were very attracted to it, but they weren’t taking the plunge. We needed another option. I found it at Gardener’s Supply:

They sell this soapstone set with two traps, which is what I have. You can also just get the traps if you don’t care for the decorative appeal of soapstone:
Low and behold, after opening up one of the traps, what familiar scent did I smell? Vinegar! The trick to these traps is allowing a way in but not out. Clearly from my bowl of vinegar test, we see that they are indeed attracted to it, they just need a little nudge getting in the pool. Within a day of putting these out, the fruit flies were gone – and I didn’t even move the fruit away! Not to sound like a commercial, but in all honesty, the cost was completely worth it. You can acquire this simple solution by clicking on either of the pictures above.
Life is good and my tomatoes are once again picture perfect.