Created
March 9, 2012 14:26
-
-
Save rwilcox/2006738 to your computer and use it in GitHub Desktop.
Open Here in Current iTerm Tab
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can now do the following to launch iTerm2 from BBEdit:
defaults write com.barebones.bbedit TerminalBundleID -string "com.googlecode.iterm2"