• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 19 Aug 2002 07:33:40 -0700

On 8/19/02 4:23 AM, "has" <email@hidden> wrote:

> No, really; most Finder scripting stuff seems to work just fine (if a bit
> slowly on OS8/9). Considering that a lot of AppleScript and AS-related
> stuff is buggy as anthills, this is not a bad track record.<g>

I have to weigh in here. There are a lot of pre-OS X AS versions out there.
Many of them have a LOT wrong with the Finder's AppleScripting. Pre- OS X, I
eventually gave up on the Finder completely, as Steven did, and used Akua or
Jon's for everything, because they just worked.

The biggest problem I found with the classic Finder was in moving and
copying files, worse when re-naming was also required. The Finder would take
so long to return a result that the next line of code would move on and find
no file to work with, and error or give a wrong result. This is
unacceptable. Generally, AppleScript doesn't work this way - it waits for a
result before moving on. Moving and copying files seemed to be the
exception. This was such a disaster, and so unreliable that I had to give up
on the Finder for it. Jon's and Akua did it just find, Akua being able to do
a simultaneous renaming.

It is a pleasure (and a relief since the osaxen don't exist here) to find
that this is not a problem in OS X, where i have made good friends with the
Finder. As has says, the Finder has a great, logical Object Model (thanks,
Cal) so it's a pleasure to use when you know you can depend on it.

The other big problem in many versions of classic AS was simply trying to
get all the items of a large folder; and with recursion - forget it. The
script would just fold up and die. I don't know if this may have improved in
later versions of OS 9: I had given up on it long before. 'list folder'
always worked, and Akua's 'the entries in' worked even better, and is much
more versatile. In OS X, I miss all the parameters of Akua's 'the entries
in' but otherwise am managing fine here. I haven't dared 'entire contents'
but I thought I'd read that even that was improved in that it didn't give
false results any more - or have I got that wrong? In any case, since
'process' returned with OS 10.1, I'm managing all right with the OS X Finder
and have begun to forget the previous traumas.

--
Paul Berkowitz
_______________________________________________
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: has <email@hidden>)

  • Prev by Date: Re: (was Int Function) mod bug
  • 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