AppleScript to clean, build, and run iPhone app in simulator without xcode interaction

386 views
Skip to first unread message

Chris Tomkins-Tinch

unread,
Dec 27, 2009, 5:07:21 AM12/27/09
to phonegap
I am currently using PhoneGap to develop an app, but do not like using
Xcode for editing javascript. I edit the iphone/www/ files across a
network using my editor of choice. I test by running the following
AppleScript on my Mac:

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

bookmarc

unread,
Dec 27, 2009, 4:15:13 PM12/27/09
to phonegap
Is there a way to include a run through the Google Closure Javascript
Compiler while building? It would be nice to compress the code. The
compiler is a Java program.
Reply all
Reply to author
Forward
0 new messages