I'm trying to write a Spotlight retriever for email.
If I run a query like this:
"kMDItemKind == ""emlx"""
I get all my email messages in the SpotlightQuery object. So far so good.
Now I want to extract an attribute from a particular SpotlightItem,
like the recipients of this mail message:
s = self.query.item(0).Value("kMDItemRecipients")
This always returns a null string in s, probably because MDItem.h file
says that this attribute is an "Array of CFStrings". So the above
Value("kMDItemRecipients") variant is supposed to return an array of
strings it seems.
Question is, how do I get this array from what is supposed to be a variant?
On the other hand, s = self.query.item(0).Value("kMDItemTitle") works
fine (gets the subject line of the email msg) because kMDItemTitle
returns a single CFString.
Thanks!
Peter.
--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel: (613)761-5444
fax: (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>