I would like a specific URL scheme,
magnet:, to run a command in Terminal.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
I found my answer using AppleScript:
on open location this_URL
Edit the Info.plist of the Application with:
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>Magnet</string> <key>CFBundleURLSchemes</key> <array> <string>magnet</string> </array> </dict> </array>