This file contains hidden or 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
-- Run the following cmd to make Transmit marry iterm2 as its Terminal partner: | |
-- defaults write com.panic.Transmit OpenTerminalScriptPath ~/transmit-iterm-patch.applescript | |
on openTerminal(location, remoteHost, serverPort) | |
-- Prepare sshCmd and cmd: | |
set sshCmd to "" | |
set cmd to "cd \"" & location & "\"" | |
if ((count of remoteHost) is greater than 0) then | |
set sshCmd to "ssh " & remoteHost |