• 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: Getting record items of a sublist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting record items of a sublist


  • Subject: Re: Getting record items of a sublist
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 30 Oct 2011 11:41:18 +0000

Ronald Hofmann wrote on Sun, 30 Oct 2011 11:39:30 +0100:

>Phantastic, this is what I was looking for.
>I created a list with 2000 lines.
>
>When looping it takes 4 seconds.
>
>Axels solution takes just 1 second.
>
>That was what I exspected. I love AppleScript.
>
>Example can be downloaded here:
>http://www.jumbosoft.de/public/ASAxelSpeedTest.zip

On my 2.53 GHz MacBook Pro, the original loop in the downloaded script
takes just over nine seconds. Axel's method takes around 0.45 seconds.
This takes about 0.02 seconds:

  repeat with i from 1 to (count theNameList)
    set theItem to myname of item i of my theNameList -- NB. 'theNameList' is referenced (with 'my').
    set end of my theChooseList to theItem -- Ditto 'theChooseList'.
  end repeat


NG

 _______________________________________________
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: Getting record items of a sublist
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Getting record items of a sublist
  • Next by Date: Re: Getting record items of a sublist
  • Previous by thread: Re: Getting record items of a sublist
  • Next by thread: Re: Getting record items of a sublist
  • Index(es):
    • Date
    • Thread