Skip to content

Instantly share code, notes, and snippets.

@radex
Created March 28, 2013 20:38
Show Gist options
  • Save radex/5266593 to your computer and use it in GitHub Desktop.
Save radex/5266593 to your computer and use it in GitHub Desktop.
Coding some part of an Xcode project in TextMate? Tired of constantly switching between TM and Xcode to compile it? Create this command in your TextMate bundle:
#!/bin/zsh
osascript <<SCRIPT
tell application "Xcode"
activate
end tell
tell application "System Events"
tell application process "Xcode"
click menu item "Stop" of menu 1 of menu bar item "Product" of menu bar 1
click menu item "Run" of menu 1 of menu bar item "Product" of menu bar 1
end tell
end tell
SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment