Article View: adobe.scripting.indesign
Article #9792Re: [CS2 Server] Working without selection
From: Robert Tkaczyk
Date: Mon, 17 Jul 2006 23:05
Date: Mon, 17 Jul 2006 23:05
25 lines
1554 bytes
1554 bytes
Debilo,
> my goal is like your example but instead of removing the items i want to collect all the items to a kind of collection / array / selection. And then export the collection as a SINGLE snippet.
I think that you should one more time carefully read the Dave's reply ;)
... and correct something ;)
myPIs = app.documents[0].pageItems;
myLayer = app.documents[0].layers.item("A");
for (j = myPIs.length - 1; j >= 0; j--) {
if (myPIs[j].itemLayer != myLayer) {
myPIs[j].remove();
}
}
from
if (myPIs[j].itemLayer == myLayer) {
to
if (myPIs[j].itemLayer != myLayer) {
delete if DIFFERENT layer ??
and you will get array of pageItems on Layer "A"
robin
Technical Details
Message-ID:
<779FC04F5ED1A79A9682D05B15979CF0@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0efc5.-1@webcrossing.la2eafNXanI> <3bc0efc5.3@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,754b60ae96deb12b X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Tkaczyk <indesignscripts@wp.pl> Newsgroups: adobe.scripting.indesign Subject: Re: [CS2 Server] Working without selection Message-ID: <779FC04F5ED1A79A9682D05B15979CF0@in.webcrossing.la2eafNXanI> Date: Mon, 17 Jul 2006 16:05:46 -0700 References: <3bc0efc5.-1@webcrossing.la2eafNXanI> <3bc0efc5.3@webcrossing.la2eafNXanI> Lines: 28 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) X-Antivirus: avast! (VPS 0628-5, 2006-07-14), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing