• 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: what does this error mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what does this error mean?


  • Subject: Re: what does this error mean?
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 15 Jul 2010 09:50:01 +0200

Le 15 juil. 2010 à 05:05:11, tom wible a écrit :

> there's the code:
>
> on listTDL()
> 	if (count of recList) is 0 then ¬
> 		initRecList()
> 	set tdl to {}
> 	set n to 0
> 	repeat with rec in recList
> 		set n to n + 1
> 		if not rec's deleted then ¬
> 			set end of tdl to rec's toList(n)
> 		-- log item -1 of tdl
> 	end repeat
> 	return tdl
> end listTDL

Hello Tom,

Where exactly does that "The variable rec is not defined" error occur?

When trying to access rec thru "rec's deleted"?
This seems extreeeemely unlikely... ;-)

I would suspect one of the initRecList() and toList() handlers.
Does one of these also make use of a variable named "rec" (possibly indirectly, by calling other handlers)?

And, BTW, what's exactly the scope of rec? Are you sure "rec" is always local throughout your whole script?

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

References: 
 >what does this error mean? (From: tom wible <email@hidden>)

  • Prev by Date: RE: Scripting a Sys Pref
  • Next by Date: Re: Scripting a Sys Pref
  • Previous by thread: Re: what does this error mean?
  • Next by thread: Re: what does this error mean?
  • Index(es):
    • Date
    • Thread