I don't know if anyone would be interested in this, but I'll post it anyway. Below is an Applescript that I use to recover RAM when my PowerBook has tied up most of it (based on iStat Menus). Open Script Editor, copy the text below, paste into Script Editor and then replace X with your username (the short name) and Y with your password. Save as an Application. You can put this anywhere and then run it when you need to by double-clicking on it.
do shell script "purge" user name "X" password "Y" with administrator privileges
One caveat. You need to have the Developer Tools installed or this won't work.
You can also just enter the purge command in to Terminal if you'd rather do that. But again, the Developer Tools have to be installed. The purge command issues cleanup instructions for RAM to the Mac which is why you can use it to recover RAM.
I've modded this a bit by using Fastscripts to create a keyboard shortcut for it. I then ran the app I had made through Dock Dodger which is a PowerPC app that can make apps run without showing their icons in the Dock. That has the effect of making the script run without the spinner being seen and the script being shown in the dock. So effectively what this does is make it run silently and invisibly whenever I use the keyboard shortcut for it.
P.S. I know there are other ways to do a shell script as an admin without having to put in your username and password, but as it is I don't have a problem with it for myself.
do shell script "purge" user name "X" password "Y" with administrator privileges
One caveat. You need to have the Developer Tools installed or this won't work.
You can also just enter the purge command in to Terminal if you'd rather do that. But again, the Developer Tools have to be installed. The purge command issues cleanup instructions for RAM to the Mac which is why you can use it to recover RAM.
I've modded this a bit by using Fastscripts to create a keyboard shortcut for it. I then ran the app I had made through Dock Dodger which is a PowerPC app that can make apps run without showing their icons in the Dock. That has the effect of making the script run without the spinner being seen and the script being shown in the dock. So effectively what this does is make it run silently and invisibly whenever I use the keyboard shortcut for it.
P.S. I know there are other ways to do a shell script as an admin without having to put in your username and password, but as it is I don't have a problem with it for myself.