Posted on 05-30-2018 07:26 AM
I am testing out this MailToOutlook tool from macadmins.software/tools to change the default mail program to Outlook. I cant, however, find a way to reset this setting back to Mail.
Any insight or best practices for either portion?
Thanks!
Posted on 05-30-2018 08:25 AM
I don't know that tool, but there's other tools out there to set default clients. I wrote one as well (https://github.com/tmhoule/LaunchSetter). Using my app, the command would be:
/users/ary/Downloads/LaunchSetter set mailto com.apple.Mail
Note if running this through JAMF, you'll need to create a launch agent and script so it executes as the user.
Posted on 05-30-2018 09:53 AM
Ideally I'd like to find a way to do it without installing an application, but if that ends up being the only way I don't have much of a choice.
Posted on 05-31-2018 04:47 AM
Any app with access to Launch services API can do it. Python has what it needs too:
#!/usr/bin/python
from LaunchServices import *
LSSetDefaultHandlerForURLScheme("mailto", "com.apple.Mail")
Remember to run it as the user, not as root through a JAMF script.