pattulus
2/20/2014 - 2:28 PM

Shell script to list all URL schemes from the apps installed on your Mac.

Shell script to list all URL schemes from the apps installed on your Mac.

#!/bin/sh
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