Let GLaDOS Throw Your Files Into The Incinerator By Changing A System Sound

If the default sound OS X makes when you put a file in the trash doesn’t do it for you, you might enjoy having GLaDOS tell you “file deleted.”  This is a relatively simple trick to do, and will work with other system sound effects as well.  You simply need to replace a file with one of your own.

Replace The “drag to trash” Sound

Disclaimer: it’s typically not a good idea to replace system files or mess around in these folders so do this at your own risk.

The file in question that needs to be replaced is /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/dock/drag to trash.aif .  However, chances are that most of your sound files are not in .aif  format.  They are probably .mp3 s or .wav s so you will need to convert it.  I’ll show you how to do that, or you can simply download the GLaDOS sound effect.

Be sure to back up the original file in case you want to revert to it!

drag-to-trash

Then, after replacing the file, run these commands from Terminal to apply your changes.

sudo xattr -d com.apple.FinderInfo /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/dock/drag\ to\ trash.aif
sudo chown root:wheel /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/dock/drag\ to\ trash.aif
sudo kill -9 $(ps ax | grep 'coreaudio[a-z]' | awk '{print $1}')

Converting Your Sound Effects To .aif Format

The easiest way to convert your other sound effects is to use iTunes.  First, verify that your iTunes import options are set to AIFF format from within the preferences menu.

itunes-prefs-import-setting

`aiff-encoder

Now, when you right-click a file from within iTunes, you should see a Create AIFF Version option should appear.

right-click-create-aiff

Just run the commands from above by replacing the filename for each sound you change.

Pre-converted Sounds To Get Your Started

Leave a Reply