Re: Folder Actions
Re: Folder Actions
- Subject: Re: Folder Actions
- From: kai <email@hidden>
- Date: Wed, 30 Jul 2003 05:07:17 +0100
on Tue, 29 Jul 2003 12:15:08 -0400, Rob Jorgensen wrote:
>
At 4:46 PM +0100 7/29/03, Simon Forster wrote:
>
>Recently I've been seeing errors on one of our servers. From memory:
>
>
>
>"The folder actions extension has run out of memory during the
>
>processing of a folder actions script".
>
>
>
>Fine. We have a script which resizes images, files 'em and updates
>
>FileMaker running on a remote machine (it does this via program
>
>linking). So, after processing a few tens of images, we get this
>
>error message and the server falls over.
>
>
>
>Question: Is there a known memory leak with folder action scripts
>
>under Mac OS 9.2.2?
>
>
>
>If not, what would cause a memory leak in AppleScript? How would I
>
>be introducing this?
>
>
>
>I have to admit to being somewhat puzzled as this box ran fine for a
>
>couple of years under OS 9.0.4. It then started falling over very
>
>frequently and, in an act of desperation, I upgraded to 9.2.2. The
>
>frequency of crashes has fallen a little but now we're seeing (new?)
>
>crashes due to the folder actions error. Has this been introduced by
>
>the upgrade to 9.2.2? If so, what can I do to alleviate the problem?
>
>
It's been quite a while since I've used OS 9 but I seem to recall
>
others who ran into this problem. One of the hacks to overcome it was
>
to temporarily change the folder action extension into an application
>
(using ResEdit or a similar utility), assign more RAM to it, and then
>
change it back into an extension.
I'm with Rob on this - and feel the FA errors may be more to do with
available memory than leakage. Could it be that file quantities and/or sizes
have grown over time?
If a Folder Action's memory requirement exceeds that allocated to the FA
extension, then you'll almost certainly get the message: "The Folder Actions
extension has run out of memory during the execution of an action script."
On checking one of my OS 9 test machines, the memory allocated to the FA
extension is:
Minimum Size: 256 K (262144 bytes)
Suggested Size: 384 K (393216 bytes)
(For comparison, SimpleText gets 192 K and 512 K respectively.)
Unlike an application, you can't alter these settings in the Finder - simply
because 'Get Info' doesn't offer a 'Memory' option for such items. However,
memory allocation can be modified directly using ResEdit (or similar) - by
amending the extension's "SIZE" resource. The relevant settings appear at
the end of SIZE id -1's window. (Values here are in bytes - so work with
multiples of 1024.)
Besides the usual list of precautions (always work on a copy, etc.), you
should restart your machine with extensions off before attempting to replace
the original file with the modified version. (The extension obviously can't
be replaced while it's being used by the System.) It's also a good idea to
keep an unmodified copy of the original handy, just in case.
---
kai
_______________________________________________
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.