Created
March 14, 2012 15:52
-
-
Save osuushi/2037421 to your computer and use it in GitHub Desktop.
return posix path to frontmost finder window
This file contains hidden or 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
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