• 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
problem with list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with list


  • Subject: problem with list
  • From: tom wible <email@hidden>
  • Date: Wed, 17 Nov 2010 23:49:27 -0500

i have a global list to which i append script objects as needed:

global recList
...
on newEtvClass()
script etvClass
...
end script -- class etvClass
return etvClass
end newEtvClass
...
to etvRecStarted(rUID) -- eyetv triggered
write_log("etvRecStarted: ruid=" & rUID)
try
set rec to newEtvClass()
-- rec info filled in
--set end of recList to rec
copy rec to end of recList
write_log("etvRecStarted:" & rUID & ": count of recList=" & (count of recList))
...
which appears in the log:
Sunday, November 14, 2010 6:59:02 PM - etvRecStarted: ruid=311471940
Sunday, November 14, 2010 6:59:06 PM - etvRecStarted:311471940: count of recList=88


then later the list is printed:

on listTDL()
	set tdl to {}
	set n to 0
	repeat with rec in recList
		set n to n + 1
		try
			if not rec's deleted then ¬
				set end of tdl to rec's toList(n)
		on error em
			write_log("ERROR -- listTDL rec#" & n & ":" & em)
		end try
	end repeat
	return tdl
end listTDL

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.

_______________________________________________
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: problem with list
      • From: "Mark J. Reed" <email@hidden>
    • Re: problem with list
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Recreate Finder's right click context menu with AS
  • Next by Date: Re: problem with list
  • Previous by thread: Re: Recreate Finder's right click context menu with AS
  • Next by thread: Re: problem with list
  • Index(es):
    • Date
    • Thread