• 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 16:41:12 +0200

Le 15 juil. 2010 à 05:57:40, email@hidden a écrit :

> I don't think 'set the end of' works with records
>
> Try this:
>
>
>
> 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  tdl to tdl & (rec's toList(n))
> 		-- log item -1 of tdl
> 	end repeat
> 	return tdl
> end listTDL

Hmmm... not sure.
Variable "tdl" is initialized with an empty list; on the other hand, I would be tempted to guess that the toList() handler is intended to return a list.
As a result, Tom's original code should end with variable "tdl" containing a list of lists.

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

  • Follow-Ups:
    • Re: what does this error mean?
      • From: Axel Luttgens <email@hidden>
References: 
 >what does this error mean? (From: tom wible <email@hidden>)
 >Re: what does this error mean? (From: "email@hidden" <email@hidden>)

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