Last active
June 15, 2023 14:15
-
-
Save squidarth/6d86589a0baa8bf6e688f68b100347e0 to your computer and use it in GitHub Desktop.
Script for opening window and unmuting Google Meet
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
-- Zoom Version | |
on run | |
tell application "zoom.us" | |
activate | |
tell application "System Events" to tell process "zoom.us" to keystroke "a" using {shift down, command down} -- Mute/Unmute command in Zoom | |
end tell | |
end run | |
-- Google Meet Version | |
on run | |
tell application "Google Chrome" | |
activate | |
set i to 0 | |
repeat with w in (windows) -- loop over each window | |
set j to 1 -- tabs are not zeroeth | |
repeat with t in (tabs of w) -- loop over each tab | |
if title of t starts with "Meet" then | |
set (active tab index of w) to j -- set Meet tab to active | |
set index of w to 1 -- set window with Meet tab to active | |
tell application "System Events" to tell process "Google Chrome" to keystroke "d" using command down -- issue keyboard command | |
return | |
end if | |
set j to j + 1 | |
end repeat | |
set i to i + 1 | |
end repeat | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment