Changing the Trash icon

I've been able to change any other icons that I feel like on my Mac, but the Trash icon is proving a little resistant to change. I'd like to replace both the empty and full wire basket icons with others of my choosing, but I've been unable to do so, or to locate a topic on these forums that deals with this.

G5iMac, Mac OS X (10.5.6)

Posted on Jan 5, 2009 4:18 PM

Reply
9 replies

Jan 5, 2009 4:26 PM in response to Gareth Holder

I'll try to track them down for you, but you should back them up first in case it causes some problems, or in case you ever want to revert.

EDIT: Found them.

Go to /System/Library/CoreServices. Right- (or control-) click "Dock", and click "Show package contents". Then go to Contents/Resources. You'll see "trashempty.png" and "trashfull.png". BACK THEM UP, AND NOTE THEIR ORIGINAL LOCATION somewhere where you'll be able to find it later, and replace those files with the images you want, making SURE the names are correct, and the EXACT same as the originals.

Then restart. (Logging out and logging in may be sufficient, but it's probably safer to restart.)

Good luck!

Message was edited by: joshz

Jan 6, 2009 2:33 PM in response to Gareth Holder

You'll probably have to sudo cp them. If you don't know how, I would STRONGLY recommend learning a bit about Unix and the command line before attempting something like this.

I could probably walk you through it if you gave me the image file names, and locations on your computer (that is, the ones that you want to replace the trash icon with). (And to save as .png, open the images in Preview, and then click File>Save As..., and choose png).

Good luck!

Jan 7, 2009 5:23 PM in response to joshz

OK, lets give it a go then. The files are /Users/Gareth/Icons/Trash fullshadow and /Users/Gareth/Icons/Trash emptyshadow

Both of those files are currently not in a png format, so I might have to finagle new ones, but whatever files I end up using, the sudo cp command will be the same, so if you could drop me those commands and where I execute them from, that would be great.

Jan 7, 2009 5:37 PM in response to Gareth Holder

FIRST BACK UP THE ORIGINAL FILES!!! THAT IS CRUCIAL, IN CASE SOMETHING GOES WRONG!
Assuming you convert them to .png files, and rename the one to "trashempty.png" and the other to "trashfull.png", the command would be this:
sudo cp /Users/Gareth/Icons/trashempty.png /System/Library/CoreServices/Dock.app/Contents/Resources/;sudo cp /Users/Gareth/Icons/trashfull.png /System/Library/CoreServices/Dock.app/Contents/Resources/;ls -le@O /System/Library/CoreServices/Dock.app/Contents/Resources/trash*.png
Post the results of that here, and then restart.


Use V.K.'s advice. It's easier, more straightforward, and has less risks. I should have recommended something like that right away.

Good luck!

Message was edited by: joshz

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Changing the Trash icon

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.