How to enable/disable spotlight with automator?

Hi folks


I want to create shortcuts on my desktop in order to enable/ disable the spotlight.


I can do only this at the moment:

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

But how to put that into automator and pass the password, since it needs admin rights? or it there any way to avoid the SUDO and do the same?


Tnx in advance

Posted on Jan 5, 2016 5:14 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to enable/disable spotlight with automator?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.