Created
May 16, 2017 10:40
-
-
Save amgorb/008b96e91af2452f6e94ba77da5bcca7 to your computer and use it in GitHub Desktop.
small applescript that will launch iterm and open several tabs and run ssh connection to each server in list
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
-- | |
(* | |
this small script will launch iterm and open several tabs and run ssh connection to each server in list | |
*) | |
set servers to {"sandbox-19", "sandbox-19", "sandbox-19", "sandbox-19"} | |
tell application "iTerm" | |
activate | |
tell the first window | |
repeat with server in servers | |
create tab with default profile | |
tell current tab | |
tell the last session | |
set ssh_string to "kssh " & server | |
write text ssh_string | |
end tell | |
end tell | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment