Re: illustrator 10 text color change
Re: illustrator 10 text color change
- Subject: Re: illustrator 10 text color change
- From: Simon Topliss <email@hidden>
- Date: Mon, 11 Apr 2005 14:11:29 +0100
On 11 Apr 2005, at 1:30 pm, Marc Rubin wrote:
need to change one shade of black to another on text in illustrator 10.
could be CMYK color info or gray color info.
have found it straightforward for path items, which have a fill color,
but haven't been able to get text art items, which don't have their own
fill color, to work.
using code:
set fill color of every text of every text art item whose (class
of
fill color is CMYK color info and black of fill color is 100) to
{black:60}
also wondering if there are issues with groups or compound paths.
is this significantly different in CS?
Yes, it's much easier in CS. The following works in CS...
tell application "Illustrator CS"
tell document 1
set fill color of (characters of text frames whose fill color is
{class:CMYK color info, black:100.0, cyan:0.0, magenta:0.0, yellow:0.0}
or its fill color is {class:gray color info, gray value:100.0}) to
{class:gray color info, gray value:60.0}
end tell
end tell
However, I couldn't get the similar syntax to work in AI10. I seem to
remember that whose clauses and fill colors were something that was
improved on in CS.
Simon
_______________________________________________
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