I'm looking for some applescript that would tell Xcode to run the current target.
I'd like to automate Xcode from textmate to provide "Run in simulator" and "Run on device".
This is as far as I got:
tell application "Xcode"
set myWorkspace to active workspace document
set myProject to the active project document of myWorkspace -- Can’t get active project document of workspace document "project.xcworkspace"
...
end tell