Created
October 4, 2015 14:44
-
-
Save rbaulin/24a7297aaef552fec236 to your computer and use it in GitHub Desktop.
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
# open terminal here service | |
# works in OSX El Capitan | |
# to install create new Automator Service with Run Shell script below | |
# original script http://protips.maxmasnick.com/cdff-cd-to-the-path-of-the-front-most-finder-window | |
function ff { osascript -e 'tell application "Finder"'\ | |
-e "if (${1-1} <= (count Finder windows)) then"\ | |
-e "get POSIX path of (target of window ${1-1} as alias)"\ | |
-e 'else' -e 'get POSIX path of (desktop as alias)'\ | |
-e 'end if' -e 'end tell'; };\ | |
open -a Terminal $(ff) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment