🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #771

Re: extract items from a frame

#771
From: Peter Kahrel
Date: Mon, 02 Mar 2009 21:04
24 lines
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!webcrossing
References: <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