title: Applescript in Photoshop CS6: can't save a JPEG! WHY?
body: <p>I wrote a very VERY simple script droplet here. I use it to convert PDFs into a jpg after running an action. I simply drag the PDFs onto the droplet.</p>
  
  <p>When it finishes, no file is saved. Ever. I've tried POSIX, quoted form, saving from a server, saving from my desktop, different syntaxes...nothing works. Photoshop isn't saving the damn file no matter what I do. I even copied the same exact code from the guide and it doesn't effing work.</p>
  
  <pre><code> on open myItems
      repeat with thisItem in myItems
          tell application "System Events"
              set targetFolderPath to path of container of disk item (thisItem as text)
          end tell
  
  
          tell application "Adobe Photoshop CS6"
              set display dialogs to never
              open thisItem as PDF with options ¬
                  {class:PDF open options, mode:RGB, resolution:180, use antialias:true, crop page:crop box}
  
              set myDoc to name of current document
              set filePath to targetFolderPath &amp; myDoc &amp; ".jpg"
  
              do action "MyAction" from "Default"
  
              save in file filePath as JPEG with options {quality:12}
              close the current document saving no
          end tell
   end open
  </code></pre>