How to use ‘OutputVolume’ variable?

The temporary variables OutputVolume and BuiltInDisplayBrightness are -1 at all times. I got the impression these should store the current system volume and brightness but it's just always showing up as -1.

I have an M1 MacBook Air on Ventura 13.5.

1 Like

Same issues here. M2 MacBook Air Sonoma 14.4.1