| Protect the Trash from Accidental emptying.
If you have young children in the house, you may get a little nervous whenever they use the family Mac. Are they going to accidentally drag an application or document into the Trash and delete it?
This simply edit disables the "Empty Trash" menu command and then provides an AppleScript that an adult can hide and run as needed.
Before starting, you may want to view this previous edit and make sure you have theTEMPlate installed for the fmn2 resources.
To disable the "Empty Trash" command, open a copy of the Finder in ResEdit and find the fmn2 resources.
Open them with a double-click.
Find ID #525 and open it with a double-click. (If you are using the "Simple Finder" feature, open ID# 531 instead.)
Find the Command text box just above the "Empty Trash..." command, and change the item to xxxx as shown in the graphic below.

You're done editing the Finder. Save your work and quit ResEdit. Replace the original Finder and restart the computer. You will no longer be able to empty the trash from the menu command.
What are you going to do!
Open Apple's Script Editor (usually found in the Apple Extra's folder) and type in the script shown below:
tell application "Finder"
activate
empty trash
end tell
Save the script as an Application without a Startup screen, and place it in a safe place, away from young prying eyes. It is now your only way to empty the trash!
|