Created
November 18, 2018 14:28
-
-
Save taketin/00bd95b214ed93e9b96a834291b8f974 to your computer and use it in GitHub Desktop.
This script can open current Xcode project's directory in iTerm.
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
#!/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