Article View: adobe.scripting.indesign
Article #10242Re: Getting an Array of All Items that Have One Label
From: Eric
Date: Wed, 28 Jun 2006 20:27
Date: Wed, 28 Jun 2006 20:27
8 lines
1189 bytes
1189 bytes
Not sure what scripting language you're using, but in Applescript it's pretty simple. Something like:
set myList to {} --empty list
tell every page of myDocument
set myList to myList & (every page item of myDocument whose label = "my label")
end tell
Labeling multiple items with the same name is fine as long as you generally want to apply actions to them as a group. We handle our custom-made slugs this way. Label all the boxes "slug" as you put them in, delete every page item whose label = "slug" to strip them off.
Technical Details
Message-ID:
<3bc0bf0b.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0bf0b.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,277b8feb57507843 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Eric_@_MCA@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Getting an Array of All Items that Have One Label Message-ID: <3bc0bf0b.0@webcrossing.la2eafNXanI> Date: Wed, 28 Jun 2006 13:27:13 -0700 References: <3bc0bf0b.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing