Re: strings, again and again
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