Created
November 26, 2012 03:01
-
-
Save nornagon/4146386 to your computer and use it in GitHub Desktop.
AppleScript to open a new iTerm session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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