Wouldn't it be nice to have "Automator" for iPhone?

An application similar to "Automator" for OSX could be very useful on the iPhone. E.g.: I can create a script that sends an SMS to my wife every day I leave work, so she might let me know if I need to pick up milk from the store. Of course this script would need to be location-based. Maybe in the end this would be useful to implement something like RescueTime. This could also be useful to track progress of field workers. Do you know if something like this already exists?