• 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: does anybody have a recursive directory subrountine???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does anybody have a recursive directory subrountine???


  • Subject: Re: does anybody have a recursive directory subrountine???
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 12 Sep 2001 18:56:46 -0700

On 9/12/01 6:31 PM, "Michelle Steiner" <email@hidden> wrote:

> On 9/12/01 5:53 PM, Andrew Simpson <email@hidden> wrote:
>
>> I would like a subrountine that creates a list of all available files in all
>> avaialable folders no matter how deep they go into the hierachi from a
>> choosen disk or volume
>
> Select the disk icon in the finder, then run this script:
>
> tell application "Finder"
> set itAll to entire contents of item 1 of the selection
> end tell
>

Michelle, really! The 'entire contents' property is the most notorious bug
in Finder applescripting, maybe in all AppleScript. It is unreliable - when
the folder gets very big - I forget exactly how big but I think it can be
under 300 items, it starts returning false values with no errors. It's not
good to be recommending this without a warning.

Jon's Commands' 'walk folders' is meant to deal with this problem, but I
recall somebody running into some problem with it about 6 or 8 months ago.
I'm afraid I can't remember what special circumstances created a problem nor
what the problem was.

I have used the various parameters of Akua Sweets' 'the entries in' [as
alias] in recursive handlers without problems, but I have not tested it
exhaustively, although others may have. It could be that it hits
difficulties when the recursion gets overwhelming, although I don't know
that anyone's hit that. It seems pretty quick to me.

--
Paul Berkowitz


References: 
 >Re: does anybody have a recursive directory subrountine??? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: does anybody have a recursive directory subrountine???
  • Next by Date: Re: BBEdit slow copy
  • Previous by thread: Re: does anybody have a recursive directory subrountine???
  • Next by thread: Re: does anybody have a recursive directory subrountine???
  • Index(es):
    • Date
    • Thread