Skip to content

Instantly share code, notes, and snippets.

Working from home

David Domingo Snesi

Working from home
View GitHub Profile
Snesi / TransmitOpenTerminal.txt
Created Aug 15, 2018 — forked from johnfmorton/TransmitOpenTerminal.txt
Use Transmit 5 to open in iTerm (instead of as mentioned here
View TransmitOpenTerminal.txt
on openTerminal(location, remoteHost, serverPort)
tell application "System Events"
-- some versions might identify as "iTerm2" instead of "iTerm"
set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2"))
end tell
tell application "iTerm"
set targetTab to ""