Mac OS X Mountain Lion Trash Talk
The Trash is a special container in Mountain Lion where you put the icons you no longer want to hang around on your hard drive(s). Got four copies of a document named Letter to the Editor re: Bird Waste Issue on your hard drive? Drag three of them to the Trash.
Tired of tripping over old .pdf and .dmg files you’ve downloaded but no longer need? Drag them to the Trash, too.
To put something in the Trash, just drag its icon onto the Trash icon and watch it disappear. As with other icons, you know that you’ve connected with the Trash while dragging when the icon is highlighted. And as with other Dock icons, the Trash icon’s name appears when you move the cursor over the icon.
Two other ways to put items into the Trash are to select the items you want to dispose of and then choose File→Move to Trash or press cmd+Delete.
If you accidentally drag something to the Trash and want it back right now, you can magically put it back where it came from — but only if the next thing you do is choose Edit→Undo or press cmd+Z. Don’t hesitate; the Undo command in the Finder is ephemeral and exists only until you perform another file-related activity in the Finder.
In other words, as soon as you create or rename a folder, move a file from one place to another, drag a different file to the Trash, create an alias, or almost anything that affects a file or folder, choosing Edit→Undo or pressing cmd+Z will undo that action.
You’ll find that some Finder actions — most of the items in the View menu, for example — don’t affect Undo. So if you drag a file to the Trash and then switch views, Undo will still un-trash the file.
Files dragged to the Trash aren’t deleted immediately. You know how the garbage in the can on the street curb sits there until the sanitation engineers come by and pick it up each Thursday?
The OS X Trash works the same way, but without the smell. Items sit in the Trash, waiting for you to empty it. The Trash basket shows you that it has files waiting for you there. As in real life, your unemptied Trash is full of crumpled papers.
So, if you miss the window of opportunity to use the Undo command, don’t worry; you can still retrieve the file from the Trash:
To open the Trash and see what’s in there, just click its icon in the Dock. A Finder window called Trash opens, showing you the files it contains (namely, files and folders put in the Trash since the last time it was emptied as described in the bullet after next).
To retrieve an item that’s already in the Trash, drag it back out, either onto the Desktop or back into the folder where it belongs.
Or use the secret keyboard shortcut: Select the item(s) in the Trash that you wish to retrieve and press cmd+Delete. This technique has the added benefit of magically transporting the files or folders you select from the Trash back into the folder from which they came.
And, unlike Undo, the secret keyboard shortcut will work on a file or folder at any time, or at least until the next time you empty the Trash. Try it — it’s sweet.
To empty the Trash, choose Finder→Empty Trash or press Shift+cmd+Delete. If the Trash window is open, you see an Empty button just below its toolbar on the right. Clicking the button, of course, also empties the Trash.
You can also empty the Trash from the Dock by pressing the mouse button and holding it down on the Trash icon for a second or two, or right-clicking or Control-clicking the Trash icon. The Empty Trash menu item pops up like magic. Move your cursor over it to select it and then release the mouse button.
Think twice before you invoke the Empty Trash command. After you empty the Trash, the files that it contained are pretty much gone forever, or at least gone from your hard disk. Back up your hard drive at least once (several times is better).
After you get proficient at backups, chances improve greatly that even though the files are technically gone forever from your hard drive, you can get them back if you really want to (at least in theory).
Finally, while you can’t open a file that’s in the Trash, you can select it and use QuickLook (shortcut: cmd+Y) to see its contents before you decide to Empty Trash and permanently delete it.