Skip to content

Instantly share code, notes, and snippets.

@dive
Created June 16, 2012 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dive/2941864 to your computer and use it in GitHub Desktop.
Save dive/2941864 to your computer and use it in GitHub Desktop.
Redefine Spotlight Privacy settings
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