🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8475

AS compound color breakdown, how is this possible?

#8475
From: SuperMacGuy
Date: Wed, 04 Oct 2006 19:32
13 lines
1426 bytes
I have a script that looks for the color breakdown of swatches and checks to see if the ink sum is over 290.
For some reason, some colors in a document have 'compound' values, instead of a single integer for each ink, there is the entire ink breakdown.
How is this possible?

script:
set myColor to color value of swatch (item i of mylist)
set myTotal to ((item 1 of myColor) + (item 2 of myColor) + (item 3 of myColor) + (item 4 of myColor))

result for a color:
get color value of swatch "C=100 M=50 Y=100 K=50" of document 1
		{{100.0, 50.0, 100.0, 50.0}, {100.0, 50.0, 100.0, 50.0}, {100.0, 50.0, 100.0, 50.0}}

If I duplicate the offending swatch, and rename it, then it is correctly calculated. Ideas?
Technical Details
Message-ID: <3bc1df6d.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fbd7c3f72ccd7391,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: SuperMacGuy@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: AS compound color breakdown, how is this possible?
Message-ID: <3bc1df6d.-1@webcrossing.la2eafNXanI>
Date: Wed, 4 Oct 2006 12:32:51 -0700
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit