Re: Not enough Memory errors
Re: Not enough Memory errors
- Subject: Re: Not enough Memory errors
- From: Richard Morton <email@hidden>
- Date: Thu, 8 Aug 2002 12:46:46 +1000
On Thursday, August 8, 2002, at 10:25 AM, Malcolm Fitzgerald wrote:
I don't often save scripts as applications, now I have. It's a small
finder script that hides all processes.
It runs perfectly until the end when the app quits and throws an error
-108 saying "Could not save changes to "Hide All Apps" because there is
not enough memory". There aren't any explicit changes to save (the
script appears below), what is it trying to do at the point that the
error is thrown up?
------
tell application "Finder"
It's probably trying to save this:
set _apps to every process
Top level variables in command handlers are treated somewhat like
properties.
repeat with i in _apps
try -- because a few things, like control strip won't obey
set visible of i to false
end try
end repeat
end tell
Options that come to mind:
(1) Don't declare it as a top level variable;
(2) Zero it at the end;
(3) Increase the memory allocation of the applet (classic MacOS only)
Cheers,
Richard Morton
-- If it takes a hen and a half a day and a half to lay an egg and a
half,
how long does it take a monkey to kick the seeds out of a dill pickle?
_______________________________________________
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.