Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created November 26, 2012 03:01
Show Gist options
  • Save nornagon/4146386 to your computer and use it in GitHub Desktop.
Save nornagon/4146386 to your computer and use it in GitHub Desktop.
AppleScript to open a new iTerm session
tell application "System Events" to set terminal_open to process "iTerm" exists
if not terminal_open then
tell application "iTerm" to activate
else
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
launch session "Default"
activate
end tell
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment