I tried reinstalling AppleWorks. I'm back to square
one - the program opens but the same error message
comes up when I try to save. If it's an OSX issue,
how do you suggest I proceed?
Error code -51 means: rfNumErr: refnum error.
<http://www.cs.cmu.edu/afs/cs/user/lenzo/html/mac_errors.html>
This is a file system error which in plain English means something like "I can't find the reference number for this file". Each file has to have a unique reference number.
In this case, AppleWorks is trying to save a file by asking Mac OS X to do this for it. But Mac OS X is replying by saying it can't create a file with a reference number.
This might be for a number of reasons. My first thought was that the file permissions were stopping the save process by 'locking' a folder. Another explanation is that your account is corrupt in some way. You can confirm this by creating a new User account in System Preferences and seeing if AppleWorks works in it. It could also be that you have hard drive problems. You can start up from your Mac OS X CD and run Disk Utility to confirm whether this is an issue.
My next step would be to:
1) Create a new User account and test AppleWorks in it. If it works OK, move your documents from your old User account to the new User account, deleting the old User account when you're done;
2) If this fails, reinstall Mac OS X. An 'Archive & Install' reinstallation saving your network preferences might fix the problem.
3) If all else fails, reinstall Mac OS X by backing up your hard drive and doing an 'Erase and Install' installation.
Sorry I couldn't be of more help.
Dale