title: Adobe XI Pro set save path using javascript
body: <pre><code>//-------------------------------------------------------------
  //-----------------Do not edit the XML tags--------------------
  //-------------------------------------------------------------
  
  //&lt;Document-Actions&gt;
  //&lt;ACRO_source&gt;Document Will Save&lt;/ACRO_source&gt;
  //&lt;ACRO_script&gt;
  /*********** belongs to: Document-Actions:Document Will Save ***********/
  this.saveAs("/y/Misc/" + this.documentFileName);
  
  //&lt;/ACRO_script&gt;
  //&lt;/Document-Actions&gt;
  </code></pre>
  
  <p>What I am trying to do is find out how to put the save path embedded in each adobe file I am using so that it can be automatically saved in certain directory without any path being set. </p>