Re: Getting record items of a sublist
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