Article View: adobe.scripting.indesign
Article #2228Re: [JS] :: [CSX] - PageItem Stacking Order
From: Harbs
Date: Tue, 06 Jan 2009 23:13
Date: Tue, 06 Jan 2009 23:13
15 lines
1292 bytes
1292 bytes
Peter, Your question finally prompted me to do some timing tests: I created 400 text frames for testing purposes. Accessing pageItems to check if they were text frames took about 20 times as long when they were collections than with everyItem().getElements(). adding the "slice(0)" cut the time by about a third. So slice(0) doesn't make a very big difference in this case, but it does make a difference... -- Harbs http://www.in-tools.com
Technical Details
Message-ID:
<B3A10C21E210323438AE4648ECA805C3@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.telesweet.net!news4us.nl!webcrossingReferences:
<59b767cf.-1@webcrossing.la2eafNXanI> <59b767cf.11@webcrossing.la2eafNXanI> <75CDC3E916B8BB557287CC239270E8A1@in.webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5dfad1e4d169194d X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Harbs Newsgroups: adobe.scripting.indesign Subject: Re: [JS] :: [CSX] - PageItem Stacking Order Message-ID: <B3A10C21E210323438AE4648ECA805C3@in.webcrossing.la2eafNXanI> Date: Tue, 6 Jan 2009 15:13:53 -0800 References: <59b767cf.-1@webcrossing.la2eafNXanI> <59b767cf.11@webcrossing.la2eafNXanI> <75CDC3E916B8BB557287CC239270E8A1@in.webcrossing.la2eafNXanI> Lines: 18 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.telesweet.net!news4us.nl!webcrossing