From an contributor who wishes to remain anonymous, here's a script that brings back an OS 9 style memory usage report. Here's what he wrote:
here is a script to give a full memory report. i wanted something to give me a report as useful and easy to read as the About This Mac box in OS 9. the script provides a simple rundown of:
number of swapfiles
number of pageouts
physical memory used by top 7 apps
Notes on the script:
save it as a application, or save it as a compiled script and run it from the Script Menu.
you can vary the number of applications reported by changing the number in the first line of the script.
the script tries some kludgey workarounds to get application names from 'ps aux'. it assumes native non-system apps will reside in the Applications folder. your mileage may vary with regards to app names, but it should be better than those 'LaunchCFMApp' names in ProcessViewer. if anyone knows a better way to get app names, please post.
Read the rest of the article for the script...
NOTE: This script has been substantially revised! It should now parse almost any possible application scheme correctly!
I was hit by a strange system bug that affected two very different circumstances... At least, they appeared dis-similar while attempting to troubleshoot. I was having an issue where Mindvision based installers would simply quit. Poof. Either immediately, or after a successful athentication if admin privs were required.
A brand new install of the OS worked to fix this, but only for new accounts, not for existing users that were migrated over. (Loooove that self-contained user folder... 'cept it self contains bugs too...).
As well, Bizzarre issues with Acrobat reader were abouding...And this is the weird part. The Acrobat reader installed by the system install would work fine (v5.0.0). The updated Reader (5.0.5) would die if launched as a carbon app, but not as a classic app. Also, an updated install of the Acrobat (editor) app would quit. The only note was a cryptic reference to the "Rulebook Server" in the console.
It turns out the fix was the same fix for all of these issues. As noted on the mindvision website in a kbase article, Installer VISE installers may have difficulty detecting the operating system language on some Mac OS X machines, causing the installer to unexpectedly quit. A workaround is to have the user make a small change in 'International' System Preferences.
That's it. ANY change, and the system will write out a new preference, and all will be happy. I've lost about 18 man-hours trying to troubleshoot this.
If you open the About This Mac box, and click "Version", you'll see your build number. If you click again, you'll see your computer's serial number!
Has this been documented anywhere before?
[Editor's note: I've known about this since the Public Beta, but as near as I can tell, it's never been published here before! Someone else might be able to dig it up, but a search on "about" or "build" or "version" didn't find anything.]
Just a little random something I noticed. At times my Finder freezes. I get the annoying spinning disk icon and I am unable to open anything, or click on anything. At best the dock will come up from it's hidding spot. I find this happens most often when IE is trying to accomplish a task.
Whatever the cause, it takes over the entire Finder, preventing me from opening or working in any other applications. I have found a way to bypass this annoyance. I use the option-command-esc key sequence to bring up the "Force Quit" window. Then without force quiting any apps, I simply close the force quite window. for some reason this frees up the finder again, and allows me to work on other apps while what ever app that is lagging behind and causing the temporary lock up, catches up.
[Editor's note: I have no idea if this works, but if you get the spinning rainbow in the Finder, it's probably worth a try...]
This seems to be something prone with the possibilities of major damage to your system — I'm merely pointing this avenue of research out as raised by another webpage, with the preface that you shouldn't even approach doing this until you are quite confident in the knowledge of what you are doing!
This webpage speaks of how the command nvram, located in the /usr/sbin directory, can be used to "list and set open firmware settings," including "specify[ing] your own settings. For example, you could create a variable called asset_tag and keep the asset inventory tag of that particular computer in the firmware."
This particular tip was thought of by the webpage's author as a hint for people running computer labs, but it could be used by other Mac OS X users, I'm sure.
I'd really, really pause and make sure you know what you're doing before goofing around with your computer's firmware, though ... talk about playing with dynamite!
[Editor's note: I'll echo the sentiment -- this is published here mainly in the interest of completeness. Do NOT mess around with Open Firmware unless you really really know what you're doing!]
I was playing around with the 'open' and 'save' dialogues of my TextEdit app and found that if you hold down the 'option' key while dragging the dialogue page to enlarge it from the bottom-right corner, the columns will get wider without expanding their scope into other folders. I wondered if this was possible as often I need to read the full names in a window when saving or opening documents. Nice that hidden features are so easy to stumble apon... thanks Apple.
Oh and yes you can do this in all other carbon apps I have tried also. Great!
[Editor's note: This trick definitely works in Cocoa apps, but I couldn't get it to work in Excel v.X or Mozilla or Acrobat, so I'm not sure about its functionality within Carbon. If you know of a Carbon app that this works with, post the app's name. If there are some Carbon apps that support this feature, what's the difference between those and the others that don't?]
Evidently, Apple included a command-line version of Apple System Profiler in with Mac OS X, located in the /usr/sbin/ directory. It can be run simply by typing AppleSystemProfiler (no spaces) at the prompt in Terminal.
(For what it's worth, my readout says it's v1.0.42 and says it's the Apple System Profiler Tool. The one we all know about, the one with a GUI, says it's v2.7.)
I can see this as being useful in two ways; you could easily redirect its output to a text file for inclusion in an e-mail message by typing AppleSystemProfiler > report.txt.
And this website seems to think that enterprising individuals could somehow script the harvesting of information from this readout for use in, for example, computer labs.
Just got a Firewire/IDE enclosure. Put in a 60 gig drive. Since I want to use this drive on both OS X and Windows (2k), I formatted it as Fat 32 (which both OSes know about and can mount). Problem one was that I couldn't create a Fat 32 partition that big, so I split it up to two 30 gig partitions.
Now, I formatted these partitions in windows. The wierd thing is that both Windows and OS X ignore the labels (so it seemed). During the course of figuring this out, I ended up (at one point) with both of the partitions on my FireWire drive having the same name. This was OK on Windows, but on OS X. It would mount the first partition, but not the second. It couldn't even properly determine the filesystem type of the second (although I could mount it via the Terminal, Finder wasn't automounting it). Plugged the drive into Windows, changed the partition name (no reformat necessary), and voila, it worked again in OS X.
Very obscure and wierd, but it might happen to you (and it's probably a bug, because I could mount it via the shell).
This may be already known but I noticed that you can easily copy your IP address to the clipboard by simply control-clicking on your IP address in System Preferences:Sharing or System Preferences:Network and selecting Copy in the contextual menu. This is even of broader scope since you can also copy your router address, ethernet address and probably some other data.
[Editor's note: It seems you can use this little trick on just about any text box in the System Prefs application.]
Depending on how you installed your system, you may see that startup messages are displayed in English rather than the system language you chose for the System Administrator.
To change the language OSX uses at system startup, open the Terminal and type the following:
sudo pico /var/log/CDIS.custom
(I use pico but any other editor will work too. Pick your favorite one)
to match the language you want, for example
Type control-O, validate changes with Enter and exit pico with control-X (commands may change if you use another editor).
That's it. Now the next time you start up, messages will be displayed in the language you have chosen. Note, however, that some messages may still be in English. I think it is related to some updates which do not come from Apple if you manually installed them.