Skip to content

Instantly share code, notes, and snippets.

@amgorb
Created May 16, 2017 10:40
Show Gist options
  • Save amgorb/008b96e91af2452f6e94ba77da5bcca7 to your computer and use it in GitHub Desktop.
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 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