Set the default application for a URL scheme.
macOS may display a confirmation dialog for sensitive schemes such as http and https. For custom schemes (hammerspoon2) no dialog is shown.
http
https
hammerspoon2
The scheme to configure, without :// (e.g. "https", "mailto").
://
"https"
"mailto"
Bundle identifier of the application to set as default.
true if the change was accepted by the system.
true
Set the default application for a URL scheme.
macOS may display a confirmation dialog for sensitive schemes such as
httpandhttps. For custom schemes (hammerspoon2) no dialog is shown.