Illustrator 10 Problem
Illustrator 10 Problem
- Subject: Illustrator 10 Problem
- From: Rob Stott <email@hidden>
- Date: Mon, 15 Sep 2003 15:07:45 +0100
Hi all,
I'm having a problem with a script in OS X for Illustrator 10. It
searches for 0c 0m 0y 0k objects which are set to overprint and changes
them to knockout... I'll not go into the reasons for this..!
Anyway, the script works exactly as I wanted it to. However, when it
has finished it becomes impossible for a user to manually select an
object. The only way to do this is to close the document and re-open it.
I've tried this on another Mac and the same thing happens.
Am I doing something daft that's causing this problem or is it a known
Illustrator problem?
Has anyone any ideas, tips or workarounds?
Cheers
Rob
--script below...
tell application "Adobe Illustrator 10"
tell front document
-- sort out the path items
set theDodgyFills to every path item whose fill overprint is true and
fill color is {class:CMYK color info, black:0.0, cyan:0.0, magenta:0.0,
yellow:0.0}
set theDodgyStrokes to every path item whose stroke overprint is true
and stroke color is {class:CMYK color info, black:0.0, cyan:0.0,
magenta:0.0, yellow:0.0}
set theDodgyItems to theDodgyFills & theDodgyStrokes
if the (count of the items of theDodgyItems) is 0 then
display dialog "No problematic path items were found" buttons {"OK"}
default button 1 with icon stop
else
set theResponse to button returned of (display dialog "Some white
path items were found which were set to overprint.
Do you want to fix them or leave them?" buttons {"Fix them", "Leave
them"} default button 1)
if theResponse is "Fix them" then
repeat with theItem in theDodgyFills
set the fill overprint of theItem to false
end repeat
repeat with theItem in theDodgyStrokes
set the stroke overprint of theItem to false
end repeat
else
display dialog "Some white path items were found which were set to
overprint.
At your request, nothing was done." buttons {"OK"} default button 1
with icon caution
set the selected of (every path item whose stroke overprint is true
and stroke color is {class:CMYK color info, black:0.0, cyan:0.0,
magenta:0.0, yellow:0.0}) to true
set the selected of (every path item whose stroke overprint is true
and stroke color is {class:CMYK color info, black:0.0, cyan:0.0,
magenta:0.0, yellow:0.0}) to true
end if
end if
end tell
end tell
_______________________________________________
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.