• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
kMDItemTextContent for an item's content - no alternative?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kMDItemTextContent for an item's content - no alternative?


  • Subject: kMDItemTextContent for an item's content - no alternative?
  • From: Philip Dow <email@hidden>
  • Date: Thu, 1 Jun 2006 14:55:34 +0200

The spotlight docs clearly state that applications cannot request the kMDItemTextContent attribute from an MDItemRef. A discussion on the list at least as recent as February also addressed this.

Is there no way to work around this?

/usr/bin/mdls does not list the attribute, but /usr/bin/mdimport at debug level 2 does. I suppose I could parse the returned string and extract the information, but I'm not very interested in doing this. Is there really no other way to get the spotlighted textual content of a file?

-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: kMDItemTextContent for an item's content - no alternative?
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: NSTableView: column selection selects rows?
  • Next by Date: Command-click table in background app SOLVED
  • Previous by thread: Re: NSTableView: column selection selects rows?
  • Next by thread: Re: kMDItemTextContent for an item's content - no alternative?
  • Index(es):
    • Date
    • Thread