Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
10.5: Get locate to index the Time Machine drive
Authored by: robg on Nov 16, '07 03:16:14PM

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 Nov 16, '07 03:38:09PM
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 Nov 16, '07 07:48:42PM

Super fast, since it only searches for patterns in paths.



[ Reply to This | # ]