Last active
October 22, 2020 13:00
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.