I agreed with @jnpdx...
One approach would be to make a "URL-forwarding app", that is the only receiver of the URL, and then sends it to the correct binary...
(occurred to me because I was reading xcode-select docs today)
xcode-select