The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics.
- Open
Automator
- Create an
Application
- Choose
Actions > Utilities > Run Applescript
- Paste the contents of
open_in_iterm.app
into the window. - Save the script somewhere convenient
- Find the script, then drag the script onto the Finder window while holding the command key (or in Yosemite, the command + option keys)
Didn't work (iterm 3.1.7). This other solution works well for me: https://gist.github.com/ralfr/b505b664071980d1bd1f367455342e97
The peterdowns link is dead, however his repo is live here: https://github.com/peterldowns/iterm2-finder-tools