Created
November 27, 2014 23:20
-
-
Save mdaley/f6b7daa5c2ced8847531 to your computer and use it in GitHub Desktop.
new term
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
-- apple script to create a terminal when run for the first time and create an additional | |
-- terminal on every subsequent call. Bind to ctrl-alt-t using apptivate and then you have | |
-- the same terminal creation as in ubuntu; which is what I'm used to. | |
on run {input, parameters} | |
if application "iTerm" is not running then | |
tell application "iTerm" | |
reopen | |
activate | |
end tell | |
else | |
tell application "iTerm" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
launch session "Default" | |
end tell | |
end tell | |
end if | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment