another Illustrator swatch question
another Illustrator swatch question
- Subject: another Illustrator swatch question
- From: "Edmond Cho" <email@hidden>
- Date: Wed, 28 Nov 2001 18:18:42
Unfortunately, I don't have an answer to the Illustrator 10 question.
It reminded me, though, of an old scripting question I faced that I had
given up on. I have a script that creates swatches in an Illustrator 9
document from a text file of CMYK values. I could not for the life of me
decipher the scripting guide and error messages to figure out how I could
make the swatches "global."
-- excerpt
tell application "Adobe Illustrator. 9.0.2"
if not (exists swatch ColorName in current document) then
set swatchColor to {cyan:Cval, magenta:Mval, yellow:Yval, black:Kval}
make new swatch at beginning of current document with properties ,
{name:(ColorName as string), color:swatchColor}
end if
end tell
-- end excerpt
This is an infrequent, but regular process. I find myself creating the
swatches, then manually opening each color in order to hit the "global"
checkbox. Not terrible, since I only run the script a few times a month or
so, but it would be nice to finally fix this whole in my script.
Anybody know the magic words?
----------------------------------------------------
Edmond Cho
Workflow Automation Manager
Colorhythm
2541 Hearst Ave., Oakland, CA 94602
HQ 510.482.0594
SF 415.501.4300
Fax 510.315.3063
email@hidden
http://www.colorhythm.com
----------------------------------------------------
_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp