Automatic Do not disturb mode for iPhone while in Google Meet
I’ve been using Bose QuietComfort35s since 2017. I use it both for music, connected to my iPhone and for work calls. One issue is that when a call comes through on my phone, the audio is disconnected from my Macbook. This is very inconvenient during a work Google Meet call. I have to scramble then to reconnect the audio to my meeting.
I’m fixing this with an AppleScript + Apple Shortcut combo.
Available as a gist.
|
|
The apple script looks for my browser, and then tries to identify the tab that contain the Google Meet meeting. If one is found, it executes the shortcut to set “Do not disturb” mode for 10 minutes.
I have it running every 3 minutes via launchd:
|
|
The idea is is that if a meeting is ongoing, DND mode will keep being extended by 10 minutes and should cover the duration of the meeting.
To install:
- Grab the shortcut from here.
- Grab the applescript from the gist and store it locally. You might want to change it for your browser.
- Create a launchd config in
~/Library/LaunchAgents/com.user.dnd-for-meet.plist
. - Load the config like so
launchctl load ~/Library/LaunchAgents/com.user.dnd-for-meet.plist
.