Skip to content

Instantly share code, notes, and snippets.

@ismnoiet
Last active July 26, 2017 20:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ismnoiet/c5feef39bd7da0955d950d3da14c91d5 to your computer and use it in GitHub Desktop.
Save ismnoiet/c5feef39bd7da0955d950d3da14c91d5 to your computer and use it in GitHub Desktop.
Refresh spotlight index to list the newly installed applications
# pboblem : some applications can't be found using spotlight search box.
# solution : reload the metadata plist
# source : http://apple.stackexchange.com/questions/62715/applications-dont-show-up-in-spotlight
# Turn off spotlight
sudo mdutil -a -i off
# Unload it :
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
# Load it :
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
# Turn spotlight on again:
sudo mdutil -a -i on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment