[HOWTO] Trash on Desktop

bobw

The Late: SuperMacMod
This is from http://www.macosxhints.com

Here's how you can use Panther's Folder Actions to create an icon for the Trash on your desktop, or the Finder toolbar/sidebar. Note that the icon won't change depending on whether there are items in the trash.
Launch Script Editor and type in this code:
on adding folder items to thisfolder after receiving theseitems
tell application "Finder"
repeat with i in theseitems
move i to trash
end repeat
end tell
end adding folder items to

on opening folder thisfolder
tell application "Finder"
set target of the front window to trash
end tell
end opening folder

Save the script to ~/Library -> Scripts -> Folder Action Scripts and name it "Trash."
Create a folder on your desktop named "Trash." You'll probably want to change its icon to match the Trash.
Enable Folder Actions by control-clicking on the Desktop and choosing "Enable Folder Actions".
Control-click on the folder "Trash" and choose "Attach a Folder Action." Browse to ~/Library -> Scripts -> Folder Action Scripts (if it's not already selected) and choose "Trash." as the script to use.
And you're done. You can add this folder to the Sidebar in Finder windows, or right-click the Toolbar and choose "Customize" and then drag this folder onto your Finder toolbar.
 
Back
Top