title: Applescript copy name of selected image in preview
body: <p>I have several images opened in one Preview window. I'm trying to copy the file name of the selected image in the window.</p>
  
  <p>Currently, I'm using</p>
  
  <pre><code>tell application "Preview" to activate
  tell application "System Events" to keystroke "c" using command down
  </code></pre>
  
  <p>This does not work, probably because it copies the file and its path (I only need the file name as string)</p>
  
  <p>thanks a lot</p>