DISQUS

DISQUS Hello! toxicsoftware.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

mdfind2

Started by schwa · 10 months ago

I’m clearing out some of my old code and found this little gem. mdfind2 is a replacement for Apple’s mdfind command line tool. This version adds one feature that mdfind doesn’t have, you can specify the –xml switch on the command-line to output the r ... Continue reading »

3 comments

  • Hm. I'm assuming I'd have to build the binary myself to get it to work properly? Or can the other files with hardcoded paths in the binary be made available too.. not all that savvy here.

    ./mdfind2
    ZeroLink: could not load .o file: /Users/schwa/Developer/Intermediates/mdfind2.build/Debug/mdfind2.build/Objects-normal/ppc/mdfind2.ob
    ZeroLink: could not load .o file: /Users/schwa/Developer/Intermediates/mdfind2.build/Debug/mdfind2.build/Objects-normal/ppc/CMyController.ob
    ZeroLink: could not load .o file: /Users/schwa/Developer/Intermediates/mdfind2.build/Debug/mdfind2.build/Objects-normal/ppc/NSMetadataItem_XMLExtensions.ob
    Bus error
  • Yep. I made the classic mistake of shipping the Debug build not the Release build. The zip file now contains the release build binary.
  • So, and what is about an XML content importer plugin to Spotlight?

    It will be useful when we could access XML tags and attributes in content of the file directly in search query and results!

    <name>John</name>
    <birthDay>09/10/1971</birthDay>

    Search query should be "... birthDay == 09/10/1971", and result like an XML node tree: kMDItemFSXMLTag.name=John
    kMDItemFSXMLTag.birthDay=09/10/1971

Add New Comment

Returning? Login