If one moves any file to the Trash folder on a Mac, by default, a short sound effect plays through the Mac's audio output (assuming that the system audio has not been muted).
I have an .scpt file where nothing is truly being moved to the Trash folder, but I would still like to have the Trash sound effect play.
I understand that I can download the sound effect onto my computer as an audio file from the Internet, and write:
do shell script "afplay /Users/Me/Desktop/TrashSoundEffect.aiff"
However, I would prefer to reference the built-in Trash sound effect. Is this possible?
I just don't like the idea of having to rely on an additional file to have my AppleScript function correctly. The built-in sound effect is more reliable, as it is guaranteed to remain on my computer indefinitely.