jarrodwhaley.com

I make films. I'm also a nerd.

Get a List of the URL Schemes Supported on Your Mac

From a post on Macworld’s hint forums comes this very helpful tip: paste the entirety of the block below into a terminal window and get a full list of URL schemes on your machine, with each entry prepended by the app to which the handler is registered.

find /Applications /System/Library/CoreServices -not \( -name '*.lproj' -prune \) -name '*.app' |
while IFS= read app; do
    apps="${app//\//\\/}"
    plutil -convert xml1 -o - "$app"/Contents/Info.plist |
        sed -nEe '/<key>CFBundleURLSchemes<\/key>/,/<\/array>/ s/^.*<string>(.+)<\/string>/ \1:'" $apps/p"
done |
sort

Super handy.