Re: QuarkXPress: Syntax help
Re: QuarkXPress: Syntax help
- Subject: Re: QuarkXPress: Syntax help
- From: Luca Pozzato <email@hidden>
- Date: Fri, 07 Sep 2001 19:03:01 +0200
this should work
delete (((every character) in current page) whose ((color is "PANTONE 354
CV") and character is not equal to return))
Luca
>
From: Michael Turner <email@hidden>
>
Date: Fri, 07 Sep 2001 12:33:14 -0400
>
To: AppleScriptList <email@hidden>
>
Subject: QuarkXPress: Syntax help
>
>
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!
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users