Skip to content

Instantly share code, notes, and snippets.

@chirayuk
Created May 31, 2013 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chirayuk/5682179 to your computer and use it in GitHub Desktop.
Save chirayuk/5682179 to your computer and use it in GitHub Desktop.
Reset launch services – to fix filetype bindings, copy/paste, etc.
#!/bin/sh
# Ref:
# http://krypted.com/mac-os-x/lsregister-associating-file-types-in-mac-os-x/
# http://apple.stackexchange.com/questions/7075/how-can-i-reinstall-an-application-that-the-mac-app-store-thinks-is-installed-al
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment