Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Spotlight? | 18 comments | Create New Account
Click here to return to the 'Spotlight?' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Spotlight?
Authored by: lar3ry on Wed, Jun 25 2008 at 7:40AM PDT
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 | # ]