Skip to content

Instantly share code, notes, and snippets.

@thomasbachem
Last active December 21, 2024 20:04
Show Gist options
  • Save thomasbachem/e42f4e3173cf7f7d6d0f3597442c8cd9 to your computer and use it in GitHub Desktop.
Save thomasbachem/e42f4e3173cf7f7d6d0f3597442c8cd9 to your computer and use it in GitHub Desktop.
Always open Google Meet links in Google Meet Chrome app on macOS

Open Google Meet links in Google Meet Chrome app on macOS by default

I you prefer to have Google Meet links automatically open in the official Google Meet Chrome app on Mac with its own Dock icon instead of in a browser tab, this is the way to go:

Step 1: Setup Chrome App

Install the official Google Meet Chrome web app by:

  1. Navigating to meet.google.com
  2. Then either clicking on the install icon (computer screen with downward arrow) in Chrome's address bar or on "" ▸ "Save and share""Install page as app"

Step 2: Create AppleScript Proxy App

Open the macOS Script Editor (found in /Applications/Utilities/) and paste the code from the Open in Google Meet Chrome App.applescript file in this Gist below.

Then save it and choose the App format (instead of Script) in the save dialog, e.g. as ~/Applications/Open in Google Meet Chrome App.app.

Step 3: Adjust Info.plist of Proxy App

Open the Content/Info.plist file of your newly created app in a text editor, e.g. by using "Show Package Contents" in the context menu on the app file in Finder.

Make sure the entries from this Gist's Entries for Info.plist file get added.

Step 4: Use a Browser Chooser Utility like Choosy

We can now redirect all links to meet.google.com URLs to this proxy app to have them directly open in the Chrome app.

To achieve this, you can use a browser chooser utility app like Choosy plus their corresponding Choosy Google Chrome extension.

Simply create a rule matching all URLs that contain meet.google.com and choose the proxy app as the corresponding "browser", see screenshot in the comments.

Acknowledgements

My work is based on @georgebrock's Gist AppleScript to handle URLs and this Stack Overflow answer.

on open location urlArg
do shell script "open -n '/Applications/Google Chrome.app' --args --profile-directory=Default --app-id=kjgfgldnnfoeklkmfkjfagphfepbbdan --app-launch-url-for-shortcuts-menu-item=" & quoted form of urlArg
tell application "Google Meet"
activate
end tell
end open location
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<!-- Add these entries -->
<key>LSUIElement</key>
<true/>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>HTTP URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>http</string>
<string>https</string>
</array>
</dict>
</array>
<!-- End of what needs adding -->
</dict>
</plist>
@thomasbachem
Copy link
Author

Also here's a screenshot of the Choosy rule dialog:
Screenshot of Choosy Rule

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