Created
February 11, 2013 23:02
-
-
Save CocoaBeans/4758423 to your computer and use it in GitHub Desktop.
Rebuild the LaunchServices database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LSREGISTER="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister" | |
echo "Rebuilding LaunchServices database..." | |
"${LSREGISTER}" -kill -r -all system,local,user | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment