Yup, I was correct. macOS needs an extra hoop to jump through, because it handles URLs by sending messages to applications rather than just running them with commadn line arguments. This takes care of it:
https://github.com/kovidgoyal/calibr...42bfaae1cb5fb5