Created
October 23, 2013 15:47
-
-
Save abbot/7121187 to your computer and use it in GitHub Desktop.
open new terminal tab
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
if is_running("Terminal") then | |
tell application "System Events" | |
tell process "Terminal" | |
tell menu bar 1 | |
tell menu "Shell" of menu bar item "Shell" | |
tell menu item "Linux" of menu "New Tab" of menu item "New Tab" to click | |
end tell | |
end tell | |
end tell | |
tell window 1 of application "Terminal" to activate | |
end tell | |
else | |
tell application "Terminal" to activate | |
tell application "Terminal" to activate | |
end if | |
return input | |
on is_running(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end is_running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment