Skip to content

Instantly share code, notes, and snippets.

@vanrijn
Created December 13, 2012 22:24
Show Gist options
  • Save vanrijn/4280623 to your computer and use it in GitHub Desktop.
Save vanrijn/4280623 to your computer and use it in GitHub Desktop.
Applescript to launch a new iTerm2 window
tell application "iTerm"
-- activate
-- Create a new terminal window...
set myterm to (make new terminal)
-- ... and go on within this one.
tell myterm
-- Set the terminal size constraints.
set number of columns to 80
set number of rows to 24
-- Array/List which will hold all our sessions (empty
-- by default OFC).
set sessionList to {}
launch session "Default"
end tell
-- set the bounds of the first window to {w, x, y, z}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment