Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Add a trash can to the desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Add a trash can to the desktop
Authored by: googoo on Jan 14, '04 02:29:36PM

I have not done it (I like <cmd><delete>), but you could write an AppleScript application that would trash any file dropped upon it instead using of a symlink or alias. You could even give the script a custom icon! I do not know how to change the icon when the trash is not empty (although I bet it can be done)!

-Mark



[ Reply to This | # ]
10.3: Add a trash can to the desktop
Authored by: googoo on Jan 14, '04 02:43:40PM

OK. Here is the AppleScript.


on open these_items
  tell application "Finder" to delete these_items
end open
Save it as an AppleScript Application and put it where you want (i.e., on the Desktop). I will leave the custom icon as an exercise for the reader!

-Mark

[ Reply to This | # ]