title: Photoshop Javascript scripting saving and closing document
body: <p>I'm having trouble saving for some reason; 
  I'm using Photoshop CS5.1 (if that really is the cause of the issue)</p>
  
  <pre><code>error 8800: General Photoshop error occurred. 
  This functionality may not be available in this version of Photoshop.
  Could not save a copy as C:\...\Temp001.jpeg0011338281522" 
  because the file could not be found
  </code></pre>
  
  <p><br/></p>
  
  <pre><code>var thistimestamp = Math.round(new Date().getTime() / 1000);
  saveFile = new File( "/Users/Barny/My Pictures/Temp001" +thistimestamp+ ".jpeg" )
  saveOptions = new JPEGSaveOptions();
  saveOptions.embedColorProfile = true;
  saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
  saveOptions.matte = MatteType.NONE;
  saveOptions.quality = 9;
  app.activeDocument.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
  </code></pre>
  
  <p>I'd like the script to save and close, but I keep getting this error. I'm using Photoshop CS5.1 (if that really is the cause of the issue)</p>