use a apple script:
do shell script "afplay /System/Library/Sounds/Glass.aiff"
or even more fun, as suggested on stackoverflow, use text to speech: "say Hasta la vista, Baby"
app.doScript is what you need
You can invoke AppleScript from ExtendScript.
app.doScript('say "The script has completed!" using "Deranged"',ScriptLanguage.APPLESCRIPT_LANGUAGE);
I forgot about that.
app.doScript('do shell script "afplay /System/Library/Sounds/Glass.aiff"',ScriptLanguage.APPLESCRIPT_LANGUAGE);
It works, but it takes like 5 seconds to execute. Not a problem for me, but performance kinda sucks.
Thanks for the tips guys.