users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
a6ca159fc55d3e989eb9de85daa396c593bb0a00
· 410 B · 17 lines
raw
| 1 | property btnTitle : "Mute audio" |
| 2 | |
| 3 | if application "zoom.us" is running then |
| 4 | tell application "System Events" |
| 5 | tell application process "zoom.us" |
| 6 | if exists (menu item btnTitle of menu 1 of menu bar item "Meeting" of menu bar 1) then |
| 7 | set returnValue to "on" |
| 8 | else |
| 9 | set returnValue to "off" |
| 10 | end if |
| 11 | end tell |
| 12 | end tell |
| 13 | else |
| 14 | set returnValue to "" |
| 15 | end if |
| 16 | |
| 17 | return returnValue |