Re: illus-trator script
Re: illus-trator script
- Subject: Re: illus-trator script
- From: Shane Stanley <email@hidden>
- Date: Fri, 19 Apr 2002 17:28:28 +1000
On 19/4/02 10:56 AM +1000, John McAdams, email@hidden, wrote:
>
I'm hitting a wall here. After figuring out how to select all items of
>
the same color I can't figure out how to change their color!
>
>
Any advice is much appreciated.
First, don't bother selecting them. Second, the form of the fill color
you're looking for should give you a hint of what's required to set the fill
color.
>
>
tell application "Adobe Illustrator 10"
>
set cPant to every spot of document 1 whose name ends with "cv" or
>
name ends with "cvs" or name ends with "cvc"
>
set x to item 1 of cPant
>
set selected of (every path item of document 1 whose fill color is
>
{class:spot color info, spot:x, tint:100.0}) to true
>
set spot of fill color of selection to spot "PANTONE 202 U" of
>
document 1--error here, some data was the wrong type
>
end tell
Try this:
tell application "Adobe Illustrator 10"
tell document 1
set cPant to every spot whose name ends with "cv" or name ends with "cvs"
or name ends with "cvc"
set x to item 1 of cPant
set fill color of (every path item whose fill color is {class:spot color
info, spot:x, tint:100.0}) to {class:spot color info, spot:spot "PANTONE 202
U", 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.