Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taketin/00bd95b214ed93e9b96a834291b8f974 to your computer and use it in GitHub Desktop.
Save taketin/00bd95b214ed93e9b96a834291b8f974 to your computer and use it in GitHub Desktop.
This script can open current Xcode project's directory in iTerm.
#!/usr/bin/osascript
on run argv
set cmd to "cd" & " \"" & (do shell script "pwd") & "\""
tell application "iTerm"
activate
tell current window
set firstTab to current tab
tell current session of current tab
write text cmd
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