QuarkXPress: Syntax help
QuarkXPress: Syntax help
- Subject: QuarkXPress: Syntax help
- From: Michael Turner <email@hidden>
- Date: Fri, 07 Sep 2001 12:33:14 -0400
I am attempting to move through a document removing a specific color. I
limited my script to a single page to make the effects quick enough to
perceive. I think I have found a way that would work for me, if I can just
iron out a problem: if a return character is color, it must be excluded.
Here is my attempt:
tell application "QuarkXPress 4.1"
activate
tell document 1
tell current page
repeat with y from 1 to count of text boxes
tell text box y
delete (((every character) in current page) whose
((color is "PANTONE 354 CV")
and content is not equal to return))
end tell
end repeat
end tell
end tell
end tell
The phrase " and content is not equal to return " seems to be my hangup.
Drop this phrase, and the script works after a fashion. What is the proper
way to address "every" character's "contents"?
Note: I have successfully walked through the same page with a character by
character examination, but that is too slow.
/Michael
Many thanks to all the people on the list!