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 15:25:52 +1000
At 7:17 PM -0700 7/8/02, Paul Berkowitz wrote:
On 8/7/02 5:25 PM, "Malcolm Fitzgerald" <email@hidden> 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"
set _apps to every process
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
--------
In OS X, this works just fine:
tell application "Finder" to set visible of every process to false
I've run it from the Script menu about 5000 times. It has never given an
error.
I ran it once and it said "Finder got an error: can't set visible of
every process to false" :-)
But I take the point that I don't need to set variables, I can simply
work with the result. I've wrapped the command into a try block, that
puts a sock in it's mouth!
--
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.