Skip to content

Instantly share code, notes, and snippets.

@kaminomisosiru
Last active August 5, 2016 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaminomisosiru/302a05347c07f71b85b2eca9477a39a5 to your computer and use it in GitHub Desktop.
Save kaminomisosiru/302a05347c07f71b85b2eca9477a39a5 to your computer and use it in GitHub Desktop.
open iTerm here
on run {input, parameters}
set _posixPath to POSIX path of input
tell application "iTerm"
tell current window
tell current session of (create window with default profile)
write text "cd '" & _posixPath & "'"
end tell
end tell
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment