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

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

References: 
 >problem with list (From: tom wible <email@hidden>)

  • Prev by Date: problem with list
  • Next by Date: say command
  • Previous by thread: problem with list
  • Next by thread: Re: problem with list
  • Index(es):
    • Date
    • Thread