I use Safari and Mail for my personal stuff, and then Chrome and Outlook (app - not web) for work.
How can I use BTT to change the behaviour of mailto: links in Chrome to open them in Outlook app, and keep Safari opening them in Mail app?
Thanks.
I use Safari and Mail for my personal stuff, and then Chrome and Outlook (app - not web) for work.
How can I use BTT to change the behaviour of mailto: links in Chrome to open them in Outlook app, and keep Safari opening them in Mail app?
Thanks.
I think this is a better job for some chrome extension.
I wouldn't recommend to override the standard left-click, but you could use a dedicated mouse button or trackpad gesture like this:
The hovered_link variable will contain the hovered mailto link, so you could use that to do whatever necessary (in this example it's opening the hovered mailto link in outlook using this custom terminal command: /usr/bin/open -b com.microsoft.Outlook '{url}'
Hey, thanks for your reply. Unfortunately I cannot find a Chrome extension to do this. There are a few Chrome extensions for capturing the mailto: click and redirecting to Gmail (or another online email platform), but nothing for doing it to another app.
Sounds like the best option would be for me to write a Chrome Extension…
Thanks.
You could try overriding the left-click for Chrome in BetterTouchTool and add some condition to only trigger if hovered_link starts with mailto. It is hard to tell whether it would disturb anything.
If you want to try it I can post an example preset.
Here is an example preset that opens outlook if a mailto link in chrome is clicked, it actually seems to work pretty well. The only thing you need to do is activate this option after importing:
mailto.bttpreset (5.3 KB)
Hey,
Sorry for the delay in responding. I ended up building a small app that captures mailto: clicks in any web browser and then redirects them to whatever mail app I want through settings I set in the app.
Thanks