gen2brain / beeep

Go cross-platform library for sending desktop notifications, alerts and beeps
BSD 2-Clause "Simplified" License
1.43k stars 89 forks source link

beep_darwin: beep without requiring special system events permissions #34

Closed stefanb closed 4 years ago

stefanb commented 4 years ago
$ osascript -e "tell application \"System Events\" to beep" 

raises image

if user denies that there is an error:

36:40: execution error: Not authorised to send Apple events to System Events. (-1743)

and there is no beep.

On the other hand, a simpler:

$ osascript -e "beep" 

does not require any extra permissions and it makes mac beep without any prompts.

gen2brain commented 4 years ago

Merged, thanks!