I\'m trying to register a custom protocol to an application on the Mac, i.e:
On Macs this is easy to do with AppleScript. The most detailed description is in this article, Launch Scripts from Webpage Links on Mac. I'd read that page since it includes a full walk-through and a full working example to download.
Basically, you make an event handler in a script:
on open location this_URL
display dialog "I'm doing something with this URL: " & return & this_URL
end open location
Then save that as an Application. Then in the Finder use Show Package Contents to edit the Info.plist. You add some properties to the app to register it as a handler for your protocol.
CFBundleURLTypes
CFBundleURLName
Cliff's handler
CFBundleURLSchemes
abcdef