Re: recursion testing (was: Finder - Delete empty folders, recursively)
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.