title: Align Artwork to Artboard in Illustrator via javascript
body: <p>I'm attempting to position an object in illustrator to the bottom, left of the art board via javascript. I can access the object with javascript and perform function to it like "rotate"</p>
  
  <pre><code>if ( app.documents.length &gt; 0) {
      doc = app.activeDocument;
  }
  
  
     function traceImage(doc) {
  
           doc.pageItems[0].rotate (30);
  
  
  }
  
  traceImage(doc);
  </code></pre>
  
  <p>But I'm having trouble finding a simple way to position/align the "pageItems[0]" in the bottom/left of the art board. Is there a simpler approach to this other than calculating it's current distance and then moving it? Thanks.</p>