exec "osascript -e 'beep 1'"

Or, better yet, get ahold of osx/aeosa and use those bindings.