🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16526

Re: [AS] placing text in frame on the centre of a page

#16526
From: Dave Saunders
Date: Tue, 02 Sep 2003 11:43
9 lines
1492 bytes
Tom,

Are you trying to detect an existing frame that meets your requirements?

If so, and if you have no control over the creation of the frames, then you have no choice but to cycle through the frames of each page, looking for the one that meets your criterion. You're gong to have to look at the visible bounds and calulate the mid point coordinates (and you might need to deal with rounding errors if the frame is not really EXACTLY at the middle).

But if you do have control over (or input into) the creation of the frames, then the solution is to use a Script Label. Label the frames of interest and then look for that label on each page. Much quicker and easier.

Dave
Technical Details
Message-ID: <2ccd2ff5.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd2ff5.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ce04c213c146fdd4
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-02 05:07:54 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] placing text in frame on the centre of a page
Message-ID: <2ccd2ff5.2@webx.la2eafNXanI>
Date: Tue, 2 Sep 2003 04:43:23 -0700
References: <2ccd2ff5.-1@webx.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit