Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Force Spotlight to reindex a drive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Force Spotlight to reindex a drive
Authored by: geohar on Apr 30, '05 12:07:08PM

spotlight wouldn't find any of my iTunes tracks nomatter what I did. The same for some word documents. However, they both got indexed when I openned them in the finder (not when I played the tunes in iTunes). So I opened iTunes and minimized it (important or you'll have to leave your mac alone a while) and turned off the sound (you may like it but it's a pretty odd effect). Then ran the command below

find ~/Music -name '*.mp3' -or -name '*m4p' -exec open {} \;

This opens in turns each and every track. Voilla, indexed.

May be worth a try if the mdimport command gives no mileage.



[ Reply to This | # ]
Answer: mdimport path
Authored by: lullabud on Mar 21, '08 04:13:49PM

I've had this problem and it REALLY bugged me because I wrote a spotlight driven music search for my website. TONS of results weren't showing up. The answer turned out to be simple though, and it was `mdimport ~/Music/iTunes/iTunes\ Music`. This does the same thing as your "open" trick, but without having to open every file.

Check `man mdimport` for more syntax stuff.



[ Reply to This | # ]