Re: Illustrator Newbie Colours question
Re: Illustrator Newbie Colours question
- Subject: Re: Illustrator Newbie Colours question
- From: Shane Stanley <email@hidden>
- Date: Wed, 12 Mar 2003 08:52:18 +1100
On 11/3/03 11:51 PM +1000, Mark Settle, email@hidden, wrote:
>
Here9s a script I wrote for testing purposes:
>
>
tell application "Adobe Illustrator 10"
>
set newdoc to make new document
>
set NewSpot to make new spot in document 1 with properties {color
>
type:spot color, name:"PANTONE Whatever", color:{cyan:100.0, magenta:100.0,
>
yellow:0.0, black:0.0}}
>
make new rectangle in newdoc with properties {name:"Rect"}
>
set selection of document 1 to {page item "Rect" of document 1}
>
set fill color of path item "Rect" to spot of newdoc whose name is
>
"PANTONE Whatever"
>
end tell
Try something like this (there's no need to select anything):
tell application "Adobe Illustrator 10"
set newdoc to make new document
tell document 1
set NewSpot to make spot at beginning with properties {color type:spot
color, name:"PANTONE Whatever", color:{cyan:100.0, magenta:100.0,
yellow:0.0, black:0.0}}
make new rectangle at beginning with properties {name:"Rect"}
set fill color of path item "Rect" to {spot:NewSpot, tint:100}
end tell
end tell
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.