Path: utzoo!censor!geac!jtsv16!uunet!samsung!gem.mps.ohio-state.edu!apple!apple.com!parent From: parent@apple.com (Sean Parent) Newsgroups: comp.sys.mac.programmer Subject: Re: Tail patches Message-ID: <5133@internal.Apple.COM> Date: 10 Nov 89 18:51:32 GMT Organization: Apple Computer, Inc. Lines: 21 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> 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. I hope you would never put such a hack into a commercial piece of software. Sean Parent "Quality unattainable in a reasonable amount of time."