application "iPhone Simulator" quit
tell application "Xcode"
open "Users:you:path:to:MYPROJECT.xcodeproj"
tell project "MYPROJECT"
clean
build
launch
end tell
end tell
application "iPhone Simulator" activate
This script has rapidly increased my code-test-debug cycle. Hope it
helps.
Regards,
Chris Tomkins-Tinch