Article View: adobe.scripting.indesign
Article #9064find images by fill color
From: Stiff Mittens
Date: Thu, 14 Sep 2006 18:53
Date: Thu, 14 Sep 2006 18:53
24 lines
1362 bytes
1362 bytes
This works like a charm for frames filled or stroked with the color in question:
--
set theItems to (every page item of document 1 whose fill color is theSpotColor or stroke color is theSpotColor)
--
but it does not find images with the color applied. I tried this:
--
set theImages to every image of document 1 whose fill color is theSpotColor
--
Doesn't work. If I do this with an image directly selected:
--
tell application "Adobe InDesign CS2"
set theObject to item 1 of selection
set theProps to properties of theObject
end tell
--
theProps clearly shows:
--
{..., fill color:color id 51657 of document "MM_Pre-K.indd" of application "Adobe InDesign CS2", ...}
--
which is the color I'm looking for, but I can't seem to get a reference to the image based on that fill color.
Technical Details
Message-ID:
<3bc19f80.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,5fb69f69e63eb81c,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stiff Mittens" <stiffmittens@gmail.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: find images by fill color Message-ID: <3bc19f80.-1@webcrossing.la2eafNXanI> Date: Thu, 14 Sep 2006 11:53:38 -0700 Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit