How does someone set the default mailto handler to Outlook on a mac when Mail.app is disabled by MDM policy?

https://support.microsoft.com/en-us/office/set-an-account-as-the-default-in-outlook-for-mac-1a085d36-db97-4230-9a40-c332364426e0 assumes someone can open Mail.app.

Is the default mail app stored in a plist somewhere accessible by 'defaults write'?

#askfedi #mac

Set an account as the default in Outlook for Mac - Microsoft Support

Make Outlook for Mac to be my default email account.

plutil -p ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist | grep -B 1 -A 5 -F com.apple.default-app.mail-client
37 => {
"LSHandlerContentType" => "com.apple.default-app.mail-client"
"LSHandlerPreferredVersions" => {
"LSHandlerRoleAll" => "-"
}
"LSHandlerRoleAll" => "com.apple.garageband10"
}

#!/usr/bin/env swift
// https://apple.stackexchange.com/a/455015

import Cocoa
let mailApp = URL(fileURLWithPath: "/Applications/Microsoft Outlook.app")
NSWorkspace.shared.setDefaultApplication(at: mailApp, toOpenURLsWithScheme: "mailto")

#macos #defaults #mail #mailto #outlook

Set default mail client in macOS without adding an email account?

I'm on OS X el Capitan (10.11.6). I use Outlook to access my email and would like outlook to be the default mail application. All the instructions I find online suggest that I should open mail and ...

Ask Different