Created
December 16, 2015 08:08
-
-
Save uiur/3e05024bc7fbed09a9fa to your computer and use it in GitHub Desktop.
apple script file path
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
set filePath to "" | |
tell application "QuickTime Player" | |
try | |
if file path of front document is not equal to missing value then | |
set filePath to file path of front document | |
end if | |
end try | |
try | |
if path of front document is not equal to missing value then | |
set filePath to path of front document | |
end if | |
end try | |
try | |
if file of front document is not equal to missing value then | |
set filePath to file of front document | |
end if | |
end try | |
end tell | |
return (alias filePath)'s POSIX path |
Author
uiur
commented
Dec 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment