Re: problem with list
Re: problem with list
- Subject: Re: problem with list
- From: tom wible <email@hidden>
- Date: Fri, 19 Nov 2010 12:58:41 -0500
On Nov 19, 2010, at 10:51 AM, Mark J. Reed wrote:
doesn't change the fact that it's the last call before the error.
but not the 1st ref to rec...i'll break it down further:
repeat with rec in recList
set n to n + 1
try
write_log("listTDL rec#" & n)
if not rec's deleted then
write_log("listTDL rec#" & n & ":calling tolist" )
set end of tdl to rec's toList(n)
write_log("listTDL rec#" & n & ":called tolist" )
end if
on error em
write_log("ERROR -- listTDL rec#" & n & ":" & em)
end try
end repeat
and get back 2 u after i get home (in utah right now:-)
I find it interesting that the error doesn't occur the first 87 times
through the loop, but only on the last time through. If you change
it occurs when i access recList after etvRecStarted's
copy rec to end of recList
and before etvRecDone has successfully accessed it:
to etvRecDone(rUID) -- eyetv triggered
write_log("etvRecDone: ruid=" & rUID)
repeat with rec in recList
if rec's fileName starts with eyeTVarch then -- sure wish i could
change classname to something other than "script"
if rec's UID is equal to rUID then
tell rec
its revertSched()
its updateFileInfo()
end tell
return
end if
end if
end repeat
write_log("etvRecDone:" & rUID & " not found: etvRecStarted...")
etvRecStarted(rUID)
end etvRecDone
from another log:
Wednesday, November 10, 2010 9:00:06 PM - etvRecStarted ruid 311133602
Wednesday, November 10, 2010 9:21:40 PM - ERROR -- listTDL
rec#100:The variable rec is not defined.
Wednesday, November 10, 2010 10:00:02 PM - etvRecDone ruid 311133602
again, the new rec on the end of the list is undefined, but
etvRecDone now finds the previously undefined rec in the list.
Wednesday, November 10, 2010 10:00:05 PM - etvRecStarted ruid 311137202
Wednesday, November 10, 2010 10:21:39 PM - ERROR -- listTDL
rec#101:The variable rec is not defined.
Wednesday, November 10, 2010 11:01:00 PM - etvRecDone ruid 311137202
Wednesday, November 10, 2010 11:01:00 PM - etvRecDone ruid 311137202
not found...etvRecStarted...
Wednesday, November 10, 2010 11:01:00 PM - etvRecStarted ruid 311137202
so this time etvRecDone _doesn't_ find the previously instantiated
recording @the end of the list & calls etvRecStarted...
_______________________________________________
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