Jun 05, '03 10:08:00AM • Contributed by: Erik Toh
#!/bin/sh # NOTE: Enter the following two lines as one line # without ANY additional spaces: /usr/bin/grep "$1" /System/Library/Frameworks/CoreServices.framework/ Versions/A/Frameworks/CarbonCore.framework/Headers/MacErrors.hGive it a name, save it and make it executable (chmod script_name 755). Once saved, you can do something like this (assuming a script name of "errcode"):
% % errcode 5402 qtsBadDataErr = -5402, /* something is wrong with the data */This script helped me find out why I was unable to save to disk at one time -- my disk quota was up, and instead of telling me directly, it gave me an error code I had to look up. Hope this helps someone else.
