Mac OSX Tip: Open current Finder folder in iTerm
Quick post for a quick tip, I use iTerm2 which is basically a Terminal on steroids offering features like search, autocomplete, growl support and many more but it's painful to navigate in Finder and willing to open the same directory in iTerm2.
So here it is: a nice toolbar button to automatically open the selected folder inFinder (or the current one if none is selected), made from an AppleScript.
Installation
- Open this script into AppleScript Editor and save it as an application in
~/Library/Scripts/Applications/Finder/cd
- Run
rm \ ~/Library/Scripts/Applications/Finder/cd.app/Contents/Resources/droplet.icns
- Run
cp /Applications/iTerm.app/Contents/Resources/iTerm.icns \ ~/Library/Scripts/Applications/Finder/cd.app/Contents/Resources/droplet.icns
- Run
touch ~/Library/Scripts/Applications/Finder/cd.app
, this refreshes the icon - Drag and drop your app into your Finder toolbar
Now you can click on this icon and iTerm will automatically cd to the folder selected!