Re: Not enough Memory errors
Re: Not enough Memory errors
- Subject: Re: Not enough Memory errors
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 8 Aug 2002 13:14:43 +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;
Yes, that's the trick
tell application "Finder"
repeat with i in (every process)
try
set visible of i to false
end try
end repeat
end tell
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
phone: 02 9318 0877 fax: 02 9318 0530
http://www.asauthors.org mailto:email@hidden
_______________________________________________
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.