• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QuarkXPress: Syntax help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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!


  • Follow-Ups:
    • Re: QuarkXPress: Syntax help
      • From: Luca Pozzato <email@hidden>
    • Re: QuarkXPress: Syntax help
      • From: Luca Pozzato <email@hidden>
  • Prev by Date: RE: time delay in script
  • Next by Date: Mixed Results: Re: can i 'store script' as stay open applet?
  • Previous by thread: Re: Make a new keychain
  • Next by thread: Re: QuarkXPress: Syntax help
  • Index(es):
    • Date
    • Thread