Skip to content

Instantly share code, notes, and snippets.

@abbot abbot/gist:7121187

Created Oct 23, 2013
What would you like to do?
open new terminal tab
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
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
You can’t perform that action at this time.