• 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 a file list in sorted order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: QuickTime: playing two movies
  • Next by Date: Some questions for scripting in Quark
  • Previous by thread: Re: getting a file list in sorted order
  • Next by thread: Scripting keyboard menu in OSX
  • Index(es):
    • Date
    • Thread