Created
March 12, 2015 19:47
-
-
Save ttrefren/ad554eb69a54ef22a954 to your computer and use it in GitHub Desktop.
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
on run argv | |
tell application "iTerm" | |
activate | |
global hostname | |
set hostname to "dev" | |
if length of argv is 1 then | |
set hostname to item 1 of argv | |
end if | |
set term to (make new terminal) | |
tell term | |
set tab to (make new session at the end of sessions) | |
end tell | |
set bounds of window 1 to {0, 0, 1920, 1200} | |
tell term | |
repeat with i from 1 to 5 | |
set tab to (make new session at the end of sessions) | |
tell tab | |
exec command "ssh -t " & hostname & " screen -RD vim" & i | |
end tell | |
end repeat | |
end tell | |
terminate the first session of term | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment