Re: getting a file list in sorted order
Re: getting a file list in sorted order
- Subject: Re: getting a file list in sorted order
- From: Andy Wylie <email@hidden>
- Date: Tue, 20 Aug 2002 22:53:04 +1200
on Mon, 19 Aug 2002 18:54:22 -0700 John W Baxter wrote:
>
At 19:29 +1200 8/19/2002, Andy Wylie wrote:
>
>but shrinking the list and picking off item 1 is considerably faster yet...
>
>
...
>
> set aliasList's end to (_List's item 1 as alias)
>
> set _List to _List's items 2 thru its item -1
>
...
>
>
I haven't timed it, but I suspect that using
>
set _List to the rest of _List
>
is at least as fast as if not faster than the second line above. (OK, so
>
"rest" is an unusual way to spell cdr ;-))
>
thanks John, I've actually never used 'rest of' until testing it earlier and
may not again :) I was surprised there's nothing between them testing on a
modest 50 items.
on Mon, 19 Aug 2002 08:56:42 -0300 Bill Briggs wrote:
>
On the other hand, I tried your posted script and it's the same
>
speed + or - 5%, depending on the run.
I made that bit up about it being fast, the first a couple of runs were
about 20% better but subsequent tests proved those times to be misleading.
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.