Guess many want to have some specific apps handling defined URL handlers like mailto and http. Below some details on how to do this
The Handlers for the Applications are located in a binary encoded file here: ~/Library/Preferences/com.apple.LauchServices.plist To modify, you first need to convert to XML, modify and re-encode again. You can do it like this:
- plutil -convert xml1 file
- Edit using "defaults write"
- plutil -convert binary1 file
Find attached a script that sets Outlook as default Mail/Calendar app and Chrome as default browser. Prerequisites: None, tested on macOS 10.12.4.