Adobe 26001360 - Illustrator CS - PC Manual page 216

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

216
• make
Notes
Illustrator's spot object represents a spot color as defined by Illustrator. All Illustrator
documents contain the spot color "[Registration]" which can be used to print to all plates of a
separation.
If no properties are specified when creating a new spot, default properties will be provided.
However, if specifying the color, you must use the same color space as the document, either
CMYK or RGB. Otherwise, an error will result. When created, the spot is inserted into the swatch
palette at the end.
Example 60.1
The script below demonstrates how a spot color can be created.
-- Make a new spot with name and color properties
tell application "Illustrator CS"
-- set up the appropriate color record for the document color space
set docColorSpace to color space of document 1
if (docColorSpace is CMYK) then
set newSpotColor to {cyan:25.0, magenta:75.0, yellow:0.0, black:0.0}
else
set newSpotColor to {red:255.0, green:0.0, blue:25.0}
end if
-- now create the new spot
make new spot in document 1 with properties ¬
{name:"My Spot", color:newSpotColor}
end tell
12 Aug 03
AppleScript Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents