• 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: recursion testing (was: Finder - Delete empty folders, recursively)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursion testing (was: Finder - Delete empty folders, recursively)


  • Subject: Re: recursion testing (was: Finder - Delete empty folders, recursively)
  • From: Jon Pugh <email@hidden>
  • Date: Tue, 15 Jun 2004 15:57:49 -0700

At 4:44 PM -0300 6/15/04, Bill Briggs wrote:
>At 11:24 PM -0400 14/06/2004, Graff wrote:
>>After a fraction of a second I get a dialog that says "failed at: 284"
>
> Yup. 284 here. OS X 10.3.4. PowerBook 667 with 768 Megs RAM.

This is error 28, stack overflow, although the script is eating the error message.

If you control the application running the script, then you could tell AppleScript to use a larger stack to increase the amount of stack space beyond AppleScript's default. In older applications this is even exposed for modification via the "scsz" resource which is described in AEUserTermTypes.r. Most developers don't bother because you can almost always implement recursive algorithms more efficiently with iteration and heap based storage.

Jon
_______________________________________________
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.


  • Follow-Ups:
    • Re: recursion testing (was: Finder - Delete empty folders, recursively)
      • From: Graff <email@hidden>
References: 
 >Finder - Delete empty folders, recursively (From: Paul Kampu <email@hidden>)
 >Re: Finder - Delete empty folders, recursively (From: Graff <email@hidden>)
 >Re: Finder - Delete empty folders, recursively (From: Graff <email@hidden>)
 >recursion testing (was: Finder - Delete empty folders, recursively) (From: Graff <email@hidden>)
 >Re: recursion testing (was: Finder - Delete empty folders, recursively) (From: Bill Briggs <email@hidden>)

  • Prev by Date: Re: Bailing out of a script
  • Next by Date: Re: recursion testing (was: Finder - Delete empty folders, recursively)
  • Previous by thread: Re: recursion testing (was: Finder - Delete empty folders, recursively)
  • Next by thread: Re: recursion testing (was: Finder - Delete empty folders, recursively)
  • Index(es):
    • Date
    • Thread