Skip to content

Instantly share code, notes, and snippets.

@cbrunnkvist
Last active June 2, 2017 04:59
Show Gist options
  • Save cbrunnkvist/c9d3457ca9815fd1c2787a6b0248b041 to your computer and use it in GitHub Desktop.
Save cbrunnkvist/c9d3457ca9815fd1c2787a6b0248b041 to your computer and use it in GitHub Desktop.
(Command-line/Provisioning script) Change the MacOS "Default Email Reader" preference
defaults export com.apple.LaunchServices/com.apple.launchservices.secure - | sed -e s/apple.mail/microsoft.outlook/ | defaults import com.apple.LaunchServices/com.apple.launchservices.secure -
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -all local,system,user
defaults export com.apple.LaunchServices/com.apple.launchservices.secure - | sed -e s/microsoft.outlook/apple.mail/ | defaults import com.apple.LaunchServices/com.apple.launchservices.secure -
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -all local,system,user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment