Last active
December 20, 2015 03:59
-
-
Save linux-china/6067919 to your computer and use it in GitHub Desktop.
lauch iTerm and change directory
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
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