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

Re: list-building performance


  • Subject: Re: list-building performance
  • From: Nigel Redmon <email@hidden>
  • Date: Sat, 2 Jun 2007 11:17:33 -0700

That doesn't do what I want, but thanks for bringing it up, because I hadn't yet figured out the right syntax to combine the items... "set end of theList to {{...},{...}}" appends a list of two lists, so that the final lists ends up containing 1000 lists, of which each sublist contains two lists (the original script builds a list that contains 2000 lists of items). I've tried various forms of appending, referring to contents and items of the lists, but haven't figured it out. That is, is there a way to

{{<listA>}} & {{<listB>},{<listC>}}

 and get

{{<listA>},{<listB>},{<listC>}}

instead of {{<listA>},{{<listB>},{<listC>}}?


thanks


On Jun 2, 2007, at 2:09 AM, KOENIG Yvan wrote:
maybe this variant may be faster

property theList1 : {}
set noteOn to false

set startTime to (time of (current date))
set theList1 to {}
set timeStamp to 0
repeat 2000 times
set end of my theList1 to {{timeStamp, noteOn, 60, 100}, {timeStamp + 1, noteOn, 60, 0}}
set timeStamp to timeStamp + 1
end repeat
(time of (current date)) - startTime

_______________________________________________ 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: list-building performance
      • From: Emmanuel <email@hidden>
    • Re: list-building performance
      • From: KOENIG Yvan <email@hidden>
References: 
 >list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: KOENIG Yvan <email@hidden>)
 >Re: list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: View Scale in Quark
  • Next by Date: Re: GUI TextEdit
  • Previous by thread: Re: list-building performance
  • Next by thread: Re: list-building performance
  • Index(es):
    • Date
    • Thread