• 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
Another Quark Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another Quark Question


  • Subject: Another Quark Question
  • From: Oakley Masten <email@hidden>
  • Date: Wed, 21 Mar 2007 13:20:20 -0700 (PDT)

Another Quark Question

I need to verify if a number is correct within a text
box.
The following works great for a single instance.
Unfortunately, I am now told that the text may contain
multiple instances of the number to check.

How would I go about checking the text for more than a
single instance without doing a repeat with every
character routine.
Is this possible?

-----start
property theText1 : {}

tell application "QuarkXPress"
	set theText1 to text of current box as text
	set charcount to number of characters in theText1
end tell

set theOff to offset of "#" in theText1
set TheECode to (characters (theOff) thru (theOff +
3)) of theText1 as text

-------end

thanks for your help
Oakley
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another Quark Question
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Launch remote script
  • Next by Date: Parsing strings
  • Previous by thread: Launch remote script
  • Next by thread: Re: Another Quark Question
  • Index(es):
    • Date
    • Thread