Untitled
Edited
AppleScript
<No selected element
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
Result
"/Users/zat/Downloads/f461166d531bc729cldd481ee1618b1c-1.mp4"