2 Replies Latest reply on Apr 11, 2013 8:58 AM by Vamitul

    How to reset rulers zero position in javascript ?

    Nicolas_Balbo

      Hello,

       

      I want to write a javascript which set the rulers origin to spread and reset zero position at the intersection of verticcal and horizontal rulers (the action I can do by hand by clicking at this intersection)

       

      I tried this line :

       

           app.activeDocument.viewPreferences.rulerOrigin=1380143983;

       

      which does set the origin to spread but does'nt reset zero position if it had been moved by hand before.

       

      Is it possible to script it ?

       

      TIA

       

      Nicolas