Cannot remove folders from Spotlight Privacy pane
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I've put some folders in the spotlight privacy pane, and tried to remove them. Spotlight reports:
"The item could not be added or removed because of an unknown error"
The item is left in the preference pane.
I have checked and the folder referred to is still where it was, is accessible, and not empty.
1) How do I remove this item from the privacy pane?
2) Is there someway to 'clear' the privacy list?
Thanks in advance for any help.
10 replies
Sign in or join Beachball Help to reply.
- 0
kisuke3 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
try repairing the disk permission and do it again.
- 0
Gavin Lawrie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Sure, good idea.
But didn't help.
Any other thoughts?
- 0
WZZZ ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Here's something. But it's just a "thought" and I have no idea if this will work for those Folders. Perhaps it will still leave those behind, but you could try. Shotgun approach.
Force Spotlight to re-index the drive by putting the entire Volume into Privacy; leave it for for a minute, then remove it and let it re-index.
There is a Terminal Command to do this which will work on earlier OSs, but I don't know if it's appropriate for Snow Leopard.
EDIT Can you do a Get Info (Cmd-I) on those Folders from their usual location or their location in Privacy? Could check both locations to see if they're the same. If so, what are the Permissions?
Message was edited by: WZZZ
- 0
Gavin Lawrie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm able to access all the folders (there are about 12) in Privacy that I cannot remove. For example, double-clicking on the entries in the Privacy pane opens the folder in Finder.
I've checked all the folder permissions - and even tried setting some to '777' but this doesn't seem to make any difference (which is understandable, as presumably the privacy setting is stored somewhere other than in the folders themselves).
I'm reluctant to put the whole drive into privacy in case I then can't get it out...
But I'll look up the command to force a reindex - it's mdutil I think - and see if I can spook spotlight into behaving nicely again. Will post report here on how I get on.
- 0
WZZZ ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
http://www.thexlab.com/faqs/stopspotlightindex.html
Assuming indexing is enabled on the volume in question:
1.
Open Terminal, located in the Macintosh HD > Applications > Utilities folder.
2.At the Terminal prompt, type the following command:
* sudo mdutil -E /path
tovolumewhere /path
tovolume is the path of the volume whose Spotlight indices you wish to rebuild. [1]For example, to rebuild the Spotlight indices for your Mac OS X startup disk, the command is:
* sudo mdutil -E /
3. Press Return. You will receive a confirmation message based on the version of Mac OS X you are using:
Mac OS X Confirmation Message
10.5 Indexing enabled.
10.4 Volume index removed.
Indexing will begin shortly thereafter.
4. At the Terminal prompt, type exit and press Return.
5. Quit (Command-Q) Terminal.
Message was edited by: WZZZ - 0
WZZZ ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Note: there is no asterisk before the commands. Sorry, that's an error from copying that page.
- 0
kisuke3 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
So what WZZZ mentioned is rebuilding the spotlight index and I can agree with that but in the event it does not work. Im curious to see if deleting the
~/library/Caches would help. Follow it up with a restartAlso safe mode probably?replicate the issue in safe mode.
if you are in 10.6, and none of the steps really worked out. Reinstall the system. by defaults its Archive and install so no data loss(but backup just to be sure).
- 0
Gavin Lawrie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Cracked it - but not I think the most elegant way.
Your post prompted me to look in more detail at where information is stored - and I had a look in the .Spotlight-V100 folder that is put in the root directory of each Volume.
In the .Spotlight-V100 folder is another folder called Store-V1
So I did:
sudo ls /Volumes/<volume name>/.Spotlight-V100/Store-V1
This reports three items in the folder:
Exclusions.plist Stores VolumeConfig.plist
Then I edited the Exclusions.plist (sudo nano /Volumes/<volume name>/.Spotlight-V100/Store-V1/Exclusions.plist) - the entries in the Privacy panel of Spotlight System Preference appear as a simple array of string values - with each string value being the path from the root of the drive to the folder to exclude - here is an example of what you see:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>Exclusions</key>
<array>
<string>Test Folder</string>
<string>Second Test Folder/Embedded Folder</string>
</array>
</dict>
</plist>I simply deleted all the entries within the <array>, saved the file, and then restarted the computer. This fixed the problem.
Huzzah!
Thanks alot for all the suggestions. With out them I would not have cracked this.
Someone who is better at such stuff can probably find a more elegant way of doing what I did. My solution also does not explain why I had the problem in the first place. But small steps...
- 0
Gavin Lawrie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
See final posting for details of what I did to fix this problem (summary - manually remove troublesome entries from .Spotlight-V100 folder)
- 0
WZZZ ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Cracked it - but not I think the most elegant way.
A lot more elegant than re-indexing the Volume. Congratulations. And, thanks, I've learned something.