Skip to content

Instantly share code, notes, and snippets.

@nitram509
Last active January 18, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitram509/ab29acff368706cd47642a59e498d07c to your computer and use it in GitHub Desktop.
Save nitram509/ab29acff368706cd47642a59e498d07c to your computer and use it in GitHub Desktop.
Scripts to mute and unmute the microphone in the current meeting, as well as start and stop the video feed
#!/usr/bin/osascript
on run argv
tell application "System Events"
tell application process "zoom.us"
if menu item "Mute Audio" of menu "Meeting" of menu bar 1 exists then
set mnu to menu item "Mute Audio" of menu "Meeting" of menu bar 1
click mnu
return
end if
end tell
end tell
end run
#!/usr/bin/osascript
on run argv
tell application "System Events"
tell application process "zoom.us"
if menu item "Start Video" of menu "Meeting" of menu bar 1 exists then
set mnu to menu item "Start Video" of menu "Meeting" of menu bar 1
click mnu
return
end if
end tell
end tell
end run
#!/usr/bin/osascript
on run argv
tell application "System Events"
tell application process "zoom.us"
if menu item "Stop Video" of menu "Meeting" of menu bar 1 exists then
set mnu to menu item "Stop Video" of menu "Meeting" of menu bar 1
click mnu
return
end if
end tell
end tell
end run
#!/usr/bin/osascript
on run argv
tell application "System Events"
tell application process "zoom.us"
if menu item "Unmute Audio" of menu "Meeting" of menu bar 1 exists then
set mnu to menu item "Unmute Audio" of menu "Meeting" of menu bar 1
click mnu
return
end if
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment