Skip to content

Instantly share code, notes, and snippets.

@patrickwelker
Last active October 28, 2016 23:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickwelker/9114838 to your computer and use it in GitHub Desktop.
Save patrickwelker/9114838 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment