Major newb question - play system sound in workflow

I just began experimenting with Automator, and to start out I created a simple little app that I can drop files on to be sent to the trash (I named it “Black Hole” and integrated the icon with my wallpaper, making it look pretty nifty). I’m looking for a way to play a short sound file when this process occurs (much like the sound that is played when files are dropped on folders), but so far I’ve had no luck. I’m not averse to using applescript, but I’d like to do this through automator if possible.


Model: MacBook Pro
AppleScript: 2.1.2
Browser: Firefox 3.6.3
Operating System: Mac OS X (10.6)


¢ add a Run Shell Script action
¢ in the code field insert this line

afplay '/path/to/soundfile.aiff'

change /path/to/soundfile.aiff to the full path to your sound file.
The single quotes are only necessary if the path contains space or other special characters