title: How do I get the path of a document open in Preview using AppleScript?
body: <p>I have tried this but it doesn't work:</p>
  
  <pre><code>tell application "Preview"
      set myfile to path of document 1 of window 1
  end tell
  </code></pre>
  
  <p>I have verified that my Preview is scriptable (NSAppleScriptEnabled).</p>