Skip to content

Instantly share code, notes, and snippets.

@osuushi
Created March 14, 2012 15:52
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 osuushi/2037421 to your computer and use it in GitHub Desktop.
Save osuushi/2037421 to your computer and use it in GitHub Desktop.
return posix path to frontmost finder window
on getFinderDirectory()
tell application "Finder"
set loc to insertion location
return POSIX path of (loc as alias) as text
end tell
end getFinderDirectory
return getFinderDirectory()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment