Skip to content

Instantly share code, notes, and snippets.

@raine
Created March 31, 2010 16:25
Show Gist options
  • Save raine/350535 to your computer and use it in GitHub Desktop.
Save raine/350535 to your computer and use it in GitHub Desktop.
osascript <<'APPLESCRIPT'
tell application "iTerm"
activate
tell the first terminal
tell the current session
tell i term application "System Events" to keystroke (key code 126)
tell i term application "System Events" to keystroke (key code 36)
end tell
end tell
end tell
tell application "TextMate"
activate
end tell
APPLESCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment