Re: Illustrator Overprint Selection
Re: Illustrator Overprint Selection
- Subject: Re: Illustrator Overprint Selection
- From: Shane Stanley <email@hidden>
- Date: Wed, 19 Mar 2003 08:50:06 +1100
On 18/3/03 9:49 PM +1000, Mark Settle, email@hidden, wrote:
>
Illustrator 10 has an annoying habit of allowing white (i.e. cmyk 0,0,0,0)
>
to overprint.
You mean users have an annoying habit of setting white to overprint...
>
We9ve run into issues with clients supplying files with items
>
being coloured up this way and I want to write a script to select them all
>
and turn the overprint off. I can select path items that are set to
>
overprint:
>
>
set selected of (every path item whose fill overprint is true) to true
>
>
...but I am struggling with selecting items of a fill colour c0 m0 y0 k0. I
>
thought this might work:
>
>
set fill overprint of (every path item whose fill color is {CMYK color
>
info:{c:0, m:0, y:0, k:0}}) to false
>
>
The syntax checks out but I get an error:
>
>
3Adobe Illustrator 10 got an error: Can't set fill overprint of every path
>
item of document 1 whose fill color = {CMYK color info:{c:0, m:0, y:0, k:0}}
>
to false.2
>
>
Any pointers?
If you ask for the fill color of a white item, you'll get:
{class:CMYK color info, black:0.0, cyan:0.0, magenta:0.0, yellow:0.0}
So just use that:
tell application "Adobe Illustrator 10"
tell document 1
set fill overprint of path items whose fill color is {class:CMYK
color info, black:0.0, cyan:0.0, magenta:0.0, yellow:0.0} to false
end tell
end tell
Note that there's no reason to select them.
(You also need to look for ones that are locked, and unlock them first.)
--
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.