• 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: John W Baxter <email@hidden>
  • Date: Mon, 19 Aug 2002 18:54:22 -0700

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 ;-))

I think "rest of <list>" appeared sometime after 1993, though, so if you
ship your scripts back through time machines... .

--John

--
John Baxter Port Ludlow, WA USA
AppleScript error: Can't get middle false of. (-1728)
_______________________________________________
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.

References: 
 >Re: getting a file list in sorted order (From: Andy Wylie <email@hidden>)

  • Prev by Date: Re: getting a file list in sorted order
  • Next by Date: Re: [late reply] Re: Parameters for "path to" Command
  • Previous by thread: Re: getting a file list in sorted order
  • Next by thread: Re: getting a file list in sorted order
  • Index(es):
    • Date
    • Thread