Re: Illustrator CS Pantone Colour
Re: Illustrator CS Pantone Colour
- Subject: Re: Illustrator CS Pantone Colour
- From: Simon Topliss <email@hidden>
- Date: Thu, 18 Aug 2005 10:58:10 +0100
On 18 Aug 2005, at 10:36, Wayne Melrose wrote:
Simon,
thanks for the reply, but the only way i could get this to work was
if i manually made a box first, filled it with 180 C and then ran
the script again.. ?
am i missing something?
Have you already got the spot colour in your job or do you need to
create that as well?
I use the following to create spot colours if I know the CMYK values...
tell application "Illustrator CS"
set s to my createSpot(0.0, 79.0, 100.0, 11.0, "PANTONE 180 C")
set r to make new rectangle at end of layer 1 of document 1 with
properties {fill color:{class:spot color info, tint:100.0, spot:s}}
end tell
-- create new swatches if they don't already exist
on createSpot(c, m, y, k, spotName)
tell application "Illustrator CS"
if not (exists swatch spotName of current document) then
make spot at beginning of current document with
properties {color:{class:CMYK color info, cyan:c, magenta:m,
yellow:y, black:k}, name:spotName, color type:spot color}
end if
return spot spotName of current document
end tell
end createSpot
However, if you don't know the CMYK values first and want to create a
spot Pantone with the correct colour values you will need to read the
info from the "Adobe Illustrator
CS:Presets.localized:Swatches.localized:PANTONE solid coated.ai" file.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden