title: Adobe Illustrator Scripting - No Management for Units
body: <p>So, I searched through the documentation on AI CS6's Scripting Reference (JavaScript / though actually ECMAScript), and I cannot find anything for managing units, or unit conversion. Is it missing?</p>
  
  <p>Photoshop uses ECMAScript's UnitValue object as a standard way for managing unit conversion, but I can't find anything for Illustrator. Illustrator functions do not accept UnitValue instances - they only accept doubles, in the "points" unit.</p>
  
  <p><strong>How am I supposed to manage units in AI?</strong></p>
  
  <p>Or, if nothing else, <strong>how do I run conversions from a given unit to <em>points</em>?</strong></p>
  
  <p>p.s. Why is it points anyway? Is that script-default? My current default unit is inches.</p>