🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #336

Re: Urgent: Duplicating rectangle to new page. Trouble in fixing the coordinates

#336
From: jongware
Date: Thu, 26 Mar 2009 13:34
13 lines
1802 bytes
Examining the options for rules on your screen would help you. The numbers returned match those given in the interface, and if you need per-page rules in the interface, you'd change them.

Since this is for a script, you can
* store the current setting of the rules in a variable
* set it to your needs
* do measurements, object placement
* restore to the old setting. That way the script doesn't (permanently) change settings the user would have set by himself.

The script options for rulers allow the same choices as in the UI:

"RulerOrigin.SPREAD_ORIGIN The zero point is at the top-left corner of the spread and the ruler increments continuously across all pages of the spread.
RulerOrigin.PAGE_ORIGIN The top-left corner of each page is a new zero point on the horizontal ruler.
RulerOrigin.SPINE_ORIGIN The zero point is at the top-left corner of the left-most page and at the top of the binding spine. The horizontal ruler measures from the leftmost page to the binding edge, and from the binding spine through the right edge of the right-most page. Also locks the zero point and prevents manual overrides."
Technical Details
Message-ID: <59b86a3b.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b86a3b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3e1a9cd424b1676e
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Urgent: Duplicating rectangle to new
 page. Trouble in fixing the coordinates
Message-ID: <59b86a3b.0@webcrossing.la2eafNXanI>
Date: Thu, 26 Mar 2009 06:34:41 -0700
References: <59b86a3b.-1@webcrossing.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit