Created
April 3, 2017 00:49
-
-
Save mitcdh/f055b1ef824873a2633ed5c74e1d6eec to your computer and use it in GitHub Desktop.
New Terminal window (assuming new window is created on app start)
This file contains 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
on iTermIsRunning() | |
tell application "System Events" | |
return (count of (application processes whose name is "iTerm2")) is not 0 | |
end tell | |
end iTermIsRunning | |
if iTermIsRunning() then | |
tell application "iTerm" | |
activate | |
create window with default profile | |
end tell | |
else | |
tell application "iTerm" | |
activate | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment