Skip to content

Instantly share code, notes, and snippets.

@randy-stad
Last active October 22, 2020 13:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randy-stad/ed3a1a53d9bbc1dc8d7c556f91598102 to your computer and use it in GitHub Desktop.
Save randy-stad/ed3a1a53d9bbc1dc8d7c556f91598102 to your computer and use it in GitHub Desktop.
AppleScript that toggles mute in a Google Meet running in Google Chrome.
on run {input, parameters}
tell application "Google Chrome"
activate
repeat with theWindow in windows
set i to 0
repeat with theTab in tabs of theWindow
set i to i + 1
if URL of theTab starts with "https://meet.google.com" then
set index of theWindow to 1
set active tab index of theWindow to i
tell application "System Events" to keystroke "d" using command down
return
end if
end repeat
end repeat
end tell
return input
end run
@randy-stad
Copy link
Author

randy-stad commented Oct 20, 2020

This only works if you use Google Chrome to access Meet. If you use Safari, Firefox, or another browser, you will need to change the application in the "tell application" command. I have not tested any other browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment