Skip to content

Instantly share code, notes, and snippets.

@osuushi
Created March 14, 2012 15:52
Show Gist options
  • 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