Reset ruler origin


hi,

i'm writing script in javascript have return position of every box of indd document. stuff have reset ruler origin in order unique coordinate system, because users manually change ruler origin like. in indesign client it's simple: have set "ruler on spine" , automatically origin set in top-left corner , can't change it. i've try same thing in script :

 

app.viewpreferences.rulerorigin = rulerorigin.spine_origin;
thedocument.viewpreferences.rulerorigin = rulerorigin.spine_origin;

 

but doesn't work. ruler origin don't change.

i'm doing wrong or there method obtain want?

 

thank in advance.

 

massimo

you don't have set ruler option application -- in fact, quite opposite, set default new documents not change current one! setting current document enough.

 

try setting thedocument.zeropoint [0,0] after changing origin.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい