Rename the Trash in the Dock
When you mouse over each item in your Dock—including the Trash—Mac OS X displays its name in a small floating label. What you may not have realized is that you’re not stuck with the name Trash. You can express your creativity by calling it “The Dumping Zone,” “Unwanted Unused Unloved,” or whatever else strikes your fancy.
Launch Terminal (/Applications/Utilities) and type these commands, one after another:
cd /System/Library/CoreServices/Dock.app/ Contents/Resources/English.lproj sudo cp InfoPlist.strings InfoPlist.bak sudo cp InfoPlist.strings ~/Desktop/InfoPlist.txt
You just navigated into the Dock’s application bundle, created a backup copy of a file, and copied that backup file to your desktop. Now, leave the Terminal window open right where it is. Switch back to the Finder, navigate to your desktop, and double-click on the InfoPlist.txt file you’ll find there. When it opens, you should see something similar to the image in “Name That Trash.” Note that if you’ve got Apple’s Developer Tools installed, the file may open in Property List Editor instead of TextEdit; if so, just edit it there.
Name That Trash Don’t like the boring name you see when you mouse over the Dock’s Trash icon? Type whatever you like within the quotation marks to give Trash a new name.
The line you need to modify is the first one (boxed in red in the screenshot). Do not change anything to the left side of the equal sign (=). Instead, just change the word
to whatever you like, making sure to leave the quotation marks intact. Save the file when you’re done. TextEdit will probably give you a warning that the file is write protected; choose Override to go ahead and save your changes. Once that’s done, close the file and switch back to Terminal.
Now you need to overwrite the default InfoPlist.strings file with the newly modified version. To do that, type this command in Terminal and press return:
sudo cp ~/Desktop/InfoPlist.txt InfoPlist .strings
To make the changes take effect, quit and restart the Dock by typing
and pressing return. When you do so, the Dock will disappear and reappear. Mouse over the Dock’s Trash icon. If everything worked, you should see your newly chosen name.
If you ever tire of your moniker, you can simply repeat the above steps, putting the word
back in place of your chosen term. You could also just replace the altered file with the backup you created earlier, using these two Terminal commands:
cd /System/Library/ CoreServices/Dock.app/ Contents/Resources/English.lproj sudo cp InfoPlist.bak InfoPlist.strings
Restart the Dock once more, and everything’s back to normal.
[ Senior Editor Rob Griffiths is the author of Mac OS X Power Hound, Panther Edition (O’Reilly, 2004). ]