Article View: adobe.scripting.indesign
Article #14803Re: Help - I'm out of time - I need a page number reference
From: Olav_Kvern
Date: Sat, 17 Jan 2004 01:00
Date: Sat, 17 Jan 2004 01:00
19 lines
1391 bytes
1391 bytes
Will-- Yes, it'll work for autoflowed text--or any text, really. The parent text frame will be the text frame containing the first character of the found text. The parent of the text frame will be the page, unless the text frame is: a. inside another text frame or table (i.e., as an inline frame) b. pasted inside another page item (such as a rectangle) c. inside a group d. on the pasteboard The class check I put in will catch these--and so prevent a runtime error. A really thorough script would climb the parent tree until it found a page or the application object--but I didn't think you'd need it (it adds complexity and slows things down a lot). Good luck! Thanks, Ole
Technical Details
Message-ID:
<2ccf6acf.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf6acf.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,48f4f6bf79b88cbb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-16 17:07:45 PST From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Help - I'm out of time - I need a page number reference Message-ID: <2ccf6acf.2@webx.la2eafNXanI> Date: Fri, 16 Jan 2004 17:00:54 -0800 References: <2ccf6acf.-1@webx.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit