Skip to content

Instantly share code, notes, and snippets.

@uiur
Created December 16, 2015 08:08
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 uiur/3e05024bc7fbed09a9fa to your computer and use it in GitHub Desktop.
Save uiur/3e05024bc7fbed09a9fa to your computer and use it in GitHub Desktop.
apple script file path
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
@uiur
Copy link
Author

uiur commented Dec 16, 2015

Gyazo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment