Article View: adobe.scripting.indesign
Article #771Re: extract items from a frame
From: Peter Kahrel
Date: Mon, 02 Mar 2009 21:04
Date: Mon, 02 Mar 2009 21:04
24 lines
1040 bytes
1040 bytes
myFrames = myPages[i].textFrames
and
myFrames = myPages[i].textFrames.everyItem()
gives you only the "independent" text frames. But
myFrames = myPages[i].allPageItems;
gives you all page items, including the embedded ones. I realise now that that also includes rectangles and every other page item, so maybe before duplicating it you want to check whether the page item is a text frame.
Peter
Technical Details
Message-ID:
<59b81716.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b81716.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,50e6c9aacf044ae5 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: extract items from a frame Message-ID: <59b81716.3@webcrossing.la2eafNXanI> Date: Mon, 2 Mar 2009 13:04:58 -0800 References: <59b81716.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit