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!


Click here to return to the '10.5: Get locate to index the Time Machine drive' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Get locate to index the Time Machine drive
Authored by: ecbtln on Fri, Nov 16 2007 at 2:52PM PST
what is the advantage of using locate over mdfind?

[ Reply to This | # ]
10.5: Get locate to index the Time Machine drive
Authored by: robg on Fri, Nov 16 2007 at 3:16PM PST
When I've tried it, mdfind didn't seem to match just filenames. For instance, mdfind foo found this:

/Applications/iWork '08/User Guides/Pages User Guide.pdf

I don't see 'foo' anywhere in there. locate foo, on the other hand, returns only filenames, and it's quite fast.

-rob.

[ Reply to This | # ]
10.5: Get locate to index the Time Machine drive
Authored by: PatrickS on Fri, Nov 16 2007 at 3:38PM PST
Try mdfind 'kMDItemFSName == foo' (or mdimport -X 2>&1 | less for a list of all search attributes).

locate is significantly faster though...

[ Reply to This | # ]

10.5: Get locate to index the Time Machine drive
Authored by: baltwo on Fri, Nov 16 2007 at 7:48PM PST
Super fast, since it only searches for patterns in paths.

[ Reply to This | # ]