Spot Color In Illustrator 9
Spot Color In Illustrator 9
- Subject: Spot Color In Illustrator 9
- From: email@hidden
- Date: Fri, 10 Aug 2001 20:45:27 EDT
Hello. It's been a while since I've written into this list, but I have a
question that I can't seem to resolve. Here's what I'm trying to do:
In Adobe Illustrator, I need to take a survey of all colors in the swatch
palette and determine whether the swatch is set to "Spot" or "Process". I
don't care if the colors are defined as RGB or CMYK. So far, I can do this
and create a list of all colors that are set to "Process".
Then I need to parse out certain colors (I have no problem with this either)
so I have a reduced list. Now the problem: I need to change every color in
this new reduced list from "Process" to "Spot". Unfortunately, it seems that
the property is read-only. Is there any way to change a color swatch from
"Process" to "Spot"? It's an easy pop-up menu with just the two choices in
the GUI and it's simple to read that data with the script. It would be a
shame if I can't CHANGE it via script.
SECOND QUESTION:
While working on this, I encountered a second question. How do I create a new
swatch color that is a spot color? I can create a swatch that is RGB, CMYK,
Grayscale, etc. but when I try to create one that is of class "spot color
info", I can't seem to do that. Actually, I can, but the problem is in the
color spec (sorry for inaccuracies, but I don't have Illustrator in front of
me now):
make new swatch with properties {name:"New Spot Color", color:{class:spot
color info, tint:100.0, spot:spot 1 of document 1}}
I think it was something like that. Anyhow, the index value for "spot:spot 1
of document 1" is the problem. I seem to have to choose an existing spot
color and this will create a new swatch color of the same color as "spot 1".
If I check that there are five spots already in the document and I try to use
"spot 6 of document 1", it fails. If I do use and existing spot, then the one
that I used and the new one both wind up with the same properties, which I
don't want to do. How can I create a new spot color swatch?
Thanks in advance.
Ken Fleisher
email@hidden