Open iTerm Tab from Finder by Shortcut

To open the currently selected Finder folder in a new iTerm tab: Create a new service in Automator. Select “Service receives no input” in “Finder”. Add the Action “Get Selected Finder Items” from the available Actions in the library on the left. Add the “Run AppleScript” from available actions and add after the previous action. Paste the following Apple Script: -- Adapted from these sources: -- http://peterdowns.com/posts/open-iterm-finder-service.html -- https://gist.github.com/cowboy/905546 -- -- Modified to work with files as well, cd-ing to their container folder on run {input, parameters} tell application "Finder" set my_file to first item of input set filetype to (kind of (info for my_file)) -- Treats OS X applications as files. …

Read On →