I have been trying to find a way to change the System alert sound
(beep) using AppleScript, but have only found discriptions of the
use of “beep n”. I am looking for something like: set System beep
to “Basso”.
Can it be done?
Yes, you can probably script System Preferences but a more expedient
way is to use the shell command "defaults" in a 'do shell script':
do shell script "defaults -currentHost read | grep com.apple.sound.beep"
will get you the current sound preference settings and you should be
able to write something like:
do shell script "defaults -currentHost write
com.apple.sound.beep.sound '/path/to/sound.aiff'