How to map a custom protocol to an application on the Mac?

前端 未结 6 899
情书的邮戳
情书的邮戳 2020-11-27 02:58

I\'m trying to register a custom protocol to an application on the Mac, i.e:

  1. User clicks on link with \"abcdef://some/url/here\"
  2. An installed applicat
6条回答
  •  心在旅途
    2020-11-27 03:14

    The important part of the linked page in Jay's answer is the entry in the Info.plist.

    I think with Launch Services it will automatically open this app if it is the only one that can handle a particular URL scheme, else you'll need to use the trick that Charlie Martin describes.

    I'm not sure what the defaults command that needs to be executed is, or if it is a launchctl command.

提交回复
热议问题