aboutsummaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
blob: 71288a73ba7733d384cb2018a0f26bd84b26bc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
property btnTitle : "Mute audio"

if application "zoom.us" is running then
  tell application "System Events"
    tell application process "zoom.us"
      if exists (menu item btnTitle of menu 1 of menu bar item "Meeting" of menu bar 1) then
        set returnValue to "on"
      else
        set returnValue to "off"
      end if
    end tell
  end tell
else
  set returnValue to ""
end if

return returnValue