Skip to content

Instantly share code, notes, and snippets.

@satoruhiga
Last active April 3, 2016 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satoruhiga/5920734 to your computer and use it in GitHub Desktop.
Save satoruhiga/5920734 to your computer and use it in GitHub Desktop.
get_finder_path.sh
#!/bin/sh
/usr/bin/osascript -e 'tell application "Finder" to get POSIX path of (target of window 1 as string)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment