Created
June 16, 2012 16:27
-
-
Save dive/2941864 to your computer and use it in GitHub Desktop.
Redefine Spotlight Privacy settings
This file contains 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
set volume_path_to_disable to POSIX path of "/Volumes/Macintosh HD/" | |
set volume_path_to_enable to POSIX path of "/Volumes/OS X Mountain Lion" | |
set command to "mdutil -d " & quoted form of volume_path_to_disable & "&&" & "mdutil -i on " & quoted form of volume_path_to_enable | |
do shell script command with administrator privileges |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment