Thursday, August 1, 2013

Open Finder Folder in iTerm Command Window

Recently I was struggling with finding a nifty tool for Finder window on Mac OS X that would allow me to directly open the selected folder in new iTerm tab. After doing a fair bit of Google search I came across this blog post that allows you to create a "Service" in Automator that gives you a contextual menu. Doing so many clicks to open up in iTerm takes away the productivity benefits that you get by creating the shortcut, so I was looking for a toolbar action to do the same.

The script solved the trickiest problem of opening up the tab, the rest was creating a scaffolding around it for it to be used as a toolbar action. For that I created a Automator Application with the following sequence -
1. Drag the "Get Selected Finder Items" as first action
2. Drag the "Run Applescript" as subsequent action
3. Replace the script with the following code

4. Save the application in ~/bin/Open in

Open in iTerm - Automator action sequences

5. Copy /Applications/
6. Navigate to ~/bin/Open in, rename AutomatorApplet.icns to AutomatorApplet.bak.icns and paste and rename iTerm.icns as AutomatorApplet.icns
7. Navigate to ~/bin folder, drag Open in to the toolbar

Congratulations !!! You are all set to use your context sensitive Open in iTerm toolbar action.

PS- You can download the application Open in iTerm from here.


  1. I love this, but for the fact that the newly created iTerm tab shows the "cd" command - I'd much prefer it if the iTerm window was created already in the specified directory.

  2. It is pretty good, I like how it opens a new iTerm tab instead of multiple windows. I really want to use this Finder Folder Toolbar in iTerm.

  3. I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
    Window Installation Company