Re: problem with list
Re: problem with list
- Subject: Re: problem with list
- From: Axel Luttgens <email@hidden>
- Date: Thu, 18 Nov 2010 09:54:20 +0100
Le 18 nov. 2010 à 05:49, tom wible a écrit :
> [...]
>
> so can anyone explain to me what this error means?
>
> Sunday, November 14, 2010 7:15:13 PM - ERROR -- listTDL rec#88:The variable rec is not defined.
Hello Tom,
You often ask us to guess, instead of providing us with the minimal yet complete code that reproduces the problem...
Anyway, here follows my guesswork:
global recList
set recList to {"a", "b"}
on toList(R)
if contents of R is "b" then return rec
end toList
on listTDL()
set n to 0
repeat with rec in recList
set n to n + 1
try
toList(rec)
on error em
log {n, em}
end try
end repeat
end listTDL
listTDL()
--> (*2, The variable rec is not defined*)
HTH,
Axel
_______________________________________________
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