🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16981

Re: Manipulating color swatches in Applescript

#16981
From: John Darnell
Date: Wed, 09 Jul 2003 21:37
32 lines
1806 bytes
Dave:

I'm fallible enough to know that it could very well have been a typo, so I cut and pasted the above text into a script, changed "cyan" to "Cyan" and attempted to run the script. I still got the same error message, regardless of where I put line #2 (i.e. even if I put it inside the "tell active document" line).

As regards the color list, if I run this script

set colorlist to name of every color
return colorlist

The following is returned in the Script Result box:

{
	"Black",
	"C=0 M=0 Y=100 K=0",
	"C=0 M=100 Y=0 K=0",
	"C=100 M=0 Y=0 K=0",
	"C=100 M=90 Y=10 K=0",
	"C=15 M=100 Y=100 K=0",
	"C=75 M=5 Y=100 K=0",
	"Cyan",
	"Magenta",
	"Paper",
	"Registration",
	"Yellow",
	""
}

I ran this script both before and after the "tell active document" line and it made no difference in the contents of the list.

So I ask again, if Cyan is in the color list, why can't I use that swatch?

Hey you smart guys from Adobe, if you happen to stumble upon this question, we sure would appreciate your wisdom!
Technical Details
Message-ID: <1de9d8b1.3@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9d8b1.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,90465f8c1b0c18b8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-09 14:37:51 PST
From: "John Darnell" <John.Darnell@Walsworth.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Manipulating color swatches in Applescript
Message-ID: <1de9d8b1.3@WebX.la2eafNXanI>
Date: Wed, 9 Jul 2003 14:37:13 -0700
References: <1de9d8b1.-1@WebX.la2eafNXanI>
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit