I think they sometimes eat tomatoes because they are looking for moisture. Have you tried setting out a shallow pan of fresh water in a shaded area? They may come to that and not bother the tomatoes as much. You can also make a mixture of hot sauce and water and spray around the plants, maybe that would help.