• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Not enough Memory errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Not enough Memory errors (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: Not enough Memory errors
  • Next by Date: Re: Not enough Memory errors
  • Previous by thread: Re: Not enough Memory errors
  • Next by thread: Re: Not enough Memory errors
  • Index(es):
    • Date
    • Thread