MailToOutlook Tool and Reversing

ary_zarrin
New Contributor II

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!

3 REPLIES 3

thoule
Valued Contributor II

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.

ary_zarrin
New Contributor II

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.

thoule
Valued Contributor II

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.