Home | Elite | Apache | Analog | SGI Irix | Computer History | Mac Trash | Online society

Trash!

Apple wrote *THE* book on computer interfaces, back in the 1980s (when real men didn't eat quiches). With OSX, they tore it up. Fitts law says that things in the corner of a screen are easier to hit with a mouse, as you can "overshoot" them. That's why since System 1.0 Apple have had a trash icon in the bottom right corner of the Finder.

Fast forward a few years. With OSX, Apple moved the trash into the dock. They moved the dock into the middle of the screen. And the trash is on the far right. Except that the dock moves around the screen depending on how many things you have in it. So one day you might have your trash icon in the center of your screen. And the next it will have moved an inch to the right. That's consistent. Who moved my *&^$% trash!?

dock
dock
-- AppleScript droplet to reproduce a Trash icon for the desktop, like OS 9
-- It can trash files on any attached disks
-- You can also drag disks to it to unmount them
-- johnsmith@metawire.org
-- Only tested on 10.3 & 10.4
-- Bugs : aliases can't be trashed unless they're in folders?
-- Not tested on non-english systems

on run
	tell application "Finder"
		if Finder window "Trash" exists then
			open window "Trash"
		else
			make new Finder window to trash
		end if
	end tell
end run

on open these_items
	repeat with i from 1 to the count of these_items
		set this_item to (item i of these_items) as alias
		set this_info to info for this_item
		tell application "Finder"
			try
				eject this_item
				delete this_item
			end try
		end tell
	end repeat
end open

$Id: trash.html,v 1.15 2006/01/30 12:12:42 johnsmith Exp $
back to top