Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!sticks!dwb From: dwb@sticks.apple.com (David W. Berry) Newsgroups: comp.sys.mac.programmer Subject: Re: Tail patches Message-ID: <5147@internal.Apple.COM> Date: 11 Nov 89 00:31:15 GMT References: <1459@sequent.cs.qmc.ac.uk> <36250@apple.Apple.COM> <5056@internal.Apple.COM> <1989Nov7.212837.5146@oracle.com> <5080@internal.Apple.COM> <1467@sequent.cs.qmc.ac.uk> <5133@internal.Apple.COM> Sender: usenet@Apple.COM Organization: Apple Computer Lines: 25 In article <5133@internal.Apple.COM> parent@apple.com (Sean Parent) writes: >In article <1467@sequent.cs.qmc.ac.uk> jeremyr@cs.qmc.ac.uk (Jeremy >Roussak) writes: >> I was challenged to write a patch which would play a sound, preferably >> whenever the Finder emptied the wastebasket (doesn't appear to be >possible) >> or at least when "Empty Wastebasket" was chosen from the menu. The >> reason for this curious request was that the person concerned had changed >> the wastebasket icon to look like a toilet and wanted it to flush! > >I would say that this falls into the catagory of one time, skanky, >useless hacks :-). There is no way that you could ever do this cleanly >unless the Mac had an empty trash trap which it doesn't. You can not be >sure that the menu items will not change in the future (in fact, I'm sure >they will). You could patch the FileManager so that the flush is sounded >every time a file is deleted but that may be over kill since lots of >applications create temporary files. How about patching the FileManager to make rude noises whenever a file with both the desktop and trash bits set is deleted. It's fairly clean, straight forward, and can be done with a head patch instead of a tail patch. Opinions: MINE, ALL MINE! (greedy evil chuckle) David W. Berry (A/UX Toolbox Engineer) dwb@apple.com 973-5168@408.MaBell AppleLink: berry1