Open Here in Current iTerm Tab
tell application "BBEdit" to set theFile to file of document 1 | |
tell application "Finder" to set theFolder to (container of file theFile) as alias | |
set theUnixPath to POSIX path of theFolder | |
tell application "iTerm" | |
tell current session of current terminal | |
write text "pushd \"" & theUnixPath & "\"" | |
end tell | |
activate | |
end tell |
This comment has been minimized.
This comment has been minimized.
You can now do the following to launch iTerm2 from BBEdit:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
This script errors when there isn't a terminal already open.