Mac OS X: Enable and Disable Spotlight

To Disable Spotlight for Mac OS X you can stop the Spotlight processes from being invoked by launchd.  To do so use the following commands:

launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist

launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

To re-enable it you would simply load up your launchd processes again like so:

launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist

launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

2 Comments

  • Cedric Tineo
    November 9, 2010 - 9:27 am | Permalink

    nice to know – but your command shows up as :

    launchctl unload -w … the  got to be a mistake or an encoding odity… is it supposed to be just -w ?

    • June 18, 2012 - 9:15 pm | Permalink

      Yes, there was an extraneous  in there but it’s fixed now.

  • Comments are closed.