Skip to content

Instantly share code, notes, and snippets.

@linux-china
Last active December 20, 2015 03:59
Show Gist options
  • Save linux-china/6067919 to your computer and use it in GitHub Desktop.
Save linux-china/6067919 to your computer and use it in GitHub Desktop.
lauch iTerm and change directory
on run dir
tell application "iTerm"
activate
tell the first terminal
launch session "Default Session"
tell the last session
write text "cd " & dir
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment