hammerspoon2-docs
    Preparing search index...

    Function setDefaultHandler

    • 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.

      Parameters

      • scheme: string

        The scheme to configure, without :// (e.g. "https", "mailto").

      • bundleID: string

        Bundle identifier of the application to set as default.

      Returns boolean

      true if the change was accepted by the system.