muting alert sound

I used to temporarily mute the alert sound with AS like this:

set volume alert volume 0

but it raises an error in ASOC. What is the new way to code this? (preferably affecting alert sounds only)

Hi,

this should work, some Standard Additions commands must be wrapped with a current application tell block


tell current application to set volume alert volume 100

thank you, it works this way!

Besten Dank!