• 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: Bill Briggs <email@hidden>
  • Date: Mon, 19 Aug 2002 08:56:42 -0300

At 7:29 PM +1200 19/08/02, Andy Wylie wrote:
on Mon, 19 Aug 2002 17:53:37 +1200 Andy Wylie wrote:

on Sun, 18 Aug 2002 17:15:15 -0300 Bill Briggs wrote:

We talked about this off-list, and Nigel's way was faster, but I've
noted that this oddball double coercion is even faster, even when
using the loop (on my test case which had 32 text files). The case
that took 10 seconds coercing directly from file ref to alias takes
less than a second this way.

set pathString to item 1 of theList as text

:) I now feel vindicated for pedantically using i for references and n for
number in loops, making a new list and setting its end would be slightly
>faster.


Yes, I didn't catch that I had 1 there instead of i. Of course the index slows it down rather a lot. Copy and paste from test scripts bit me in the butt yet again. Sigh.

On the other hand, I tried your posted script and it's the same speed + or - 5%, depending on the run.

- web
_______________________________________________
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: Rounding x to y decimal places (was Re: Int Function
  • 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