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

Spotlight? | 18 comments | Create New Account
Click here to return to the 'Spotlight?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: lar3ry on Jun 25, '08 07:40:40AM

Actually, using the "locate" database (if you are running updatedb on a regular basis) would probably be a good compromise of using a brute-force "find" (even Perl's Find package) and Spotlight (with its inherent limitations).

"locate .icns" should probably run faster than the Perl Find, albeit maybe not quite as fast as a true Spotlight search, since both locate and Spotlight simply query a database instead of traversing every file on every mounted volume in real time. (The locate database is created regularly by updatedb, but this may or may not be enabled in a typical OS X install; it's easy enough to enable, though.)

I leave the mechanism of using locate instead of Perl Find as an exercise for the reader.

[ Reply to This | # ]