title: photoshop save all open jpegs script
body: <p>I have to crop all open psd files and save as jpg. </p>
  
  <p>To speed up the workflow I am using a photoshop script that allows me to save the files one by one with specific jpg options.</p>
  
  <p>I would like to enhanced the script by including a save all open files feature.</p>
  
  <p>What would be the simples way to add this functionality to the script using javascript?</p>
  
  <p>This is the structure of the script</p>
  
  <p>//flatten image</p>
  
  <p>//declare variable myJPEGOptions
  //input jpg options</p>
  
  <p>//save jpg to folder path</p>
  
  <p>//close the document</p>