Some applications will signal to the OS that they can open special link type, such as ssh:// or github-mac://. They get automatically opened for such links by the web browser (or when using open in a terminal). If I have multiple such applications, how can I set which one should be the default?

For example, both GitHub Desktop and SourceTree can handle github-mac://. When I installed GitHub Desktop, it became the default handler for these links. How can I set SourceTree as the default handler without uninstalling GitHub Desktop?


You can do that with a freeware app called RCDefaultApp. It's ancient, but still works on El Capitan.
Update April 2019 - still works on Mojave too.

You can define the default app for any URL scheme.

I don't have one for github, but this shows how you can set, for example, ftps specifically to any installed app that supports the protocol.

enter image description here

Late Edit July 2019:
Though RCDefaultApp still works on Mojave, it may not survive Catalina [time will tell]
There is, however, a new kid on the block - SwiftDefaultApps, which may become the newer standard. Time will tell (again;)

  • it doesn't support extra parameters and adding custom cmd – NeverBe Apr 16 at 0:53

You can also try this: https://onflapp.wordpress.com/lincastor/. It allows you to register arbitrary url schemes such as chrome-devtools://

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .