• 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
Re: strings, again and again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strings, again and again


  • Subject: Re: strings, again and again
  • From: Kurt Klamp <email@hidden>
  • Date: Sun, 3 Feb 2008 10:07:22 +0100


Am 03.02.2008 um 08:33 schrieb Justin Laden:

Can anyone tell me why this just populates the target list with
"empty"--it doesn't pull the string I need.

Because there's an error in the try block. You are using the 'find text' command of the satimage.osax !?

if yes -> there are several options to use this command (see dictionary)
as standard it returns
a record if there's a match
or
error if there's no match


Thanks!

	repeat with i from 1 to (z)

		try
			set firstPull to find text "^[a-zA-Z][0-9]{4}" in item i of
descriptionRange with regexp

- what does 'description range' contain? (list of strings ?)

try a ...in (get item i of...)

			--set refinedData to matchResult of firstPull

			set item i of jobNumRange to firstPull

maybe the error occurs here because 'jobnumrange' is not a list or the dimension doesn't fit or firstpull is undefined


		on error

			set item i of jobNumRange to "empty"

		end try

	end repeat


Kurt
_______________________________________________
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: strings, again and again
      • From: Kurt Klamp <email@hidden>
References: 
 >strings, again and again (From: "Justin Laden" <email@hidden>)

  • Prev by Date: strings, again and again
  • Next by Date: Re: strings, again and again
  • Previous by thread: strings, again and again
  • Next by thread: Re: strings, again and again
  • Index(es):
    • Date
    • Thread