Skip to content

Instantly share code, notes, and snippets.

@hiilppp
Created February 20, 2014 18:14
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiilppp/9119892 to your computer and use it in GitHub Desktop.
Save hiilppp/9119892 to your computer and use it in GitHub Desktop.
Shell script to list the URL schemes associated with apps installed on your Mac.
#!/bin/sh
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump | grep -E "^[[:space:]]*bindings:.+[a-z]+[a-z0-9.+-]*:" | sed -E "s/^[[:space:]]*bindings:[[:space:]]+//" | sort -u
@hiilppp
Copy link
Author

hiilppp commented Feb 20, 2014

A different approach (by @pattulus) that produces essentially the same result (but also prints the path(s) of the app(s) associated with a URL scheme):

https://gist.github.com/pattulus/9114838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment