How do I get the path of a document open in Preview using AppleScript?
Posted
by Abhi
on Stack Overflow
See other posts from Stack Overflow
or by Abhi
Published on 2010-03-05T21:13:21Z
Indexed on
2010/03/16
12:26 UTC
Read the original article
Hit count: 148
applescript
I have tried this but it doesn't work:
tell application "Preview"
set myfile to path of document 1 of window 1
end tell
I have verified that my Preview is scriptable (NSAppleScriptEnabled).
© Stack Overflow or respective owner