For anyone who has the same question, I found my answer here:
http://www.willcannings.com/rb/SpotlightAndMetadata/
Thx William! Looks perfect.
Peter.
On 6/28/06, Peter K. Stys <pkstys at gmail dot com> wrote:
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
-------------------------------------------------------------------------------
--
-------------------------------------------------------------------------------
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>
From Thu 29 Jun 2006 21:48:30 +0200
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id D5E11729335; Thu, 29 Jun 2006 12:48:55 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.5 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id 805EB729320;
Thu, 29 Jun 2006 12:48:51 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id BB3F31343A45; Thu, 29 Jun 2006 14:48:37 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de
[80.67.18.15])
by lists.realsoftware.com (Postfix) with ESMTP id 0F34E1343A37
for <realbasic-nug at lists dot realsoftware dot com>;
Thu, 29 Jun 2006 14:48:31 -0500 (CDT)
Received: (qmail 18009 invoked from network); 29 Jun 2006 19:48:30 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 111 dot
1])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-nug at lists dot realsoftware dot com>; 29 Jun 2006
19:48:30 -0000
To: realbasic-nug at lists dot realsoftware dot com (REALbasic NUG)
In-Reply-To: <63B1DEBA-2D5D-4501-A875-F965B1716134 at nextune dot net>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Thu, 29 Jun 2006 21:48:30 +0200
Message-ID: <1hhpqce dot 1s711qu78qc8tM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.6)
Subject: Re: DiscRecordingMBS on Intel Mac, tfp error?
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com
Nicholas Melnick <nick at nextune dot net> wrote:
Hey everyone, but probably toward Christian:
=20
I'm using DiscRecordingMBS to burn an audio CD via the AudioTrack =20
method.
I just used the latest DiscRecording Example and burned first a 400 MB
folder to one disc, second a 1 MB folder as an addition to the same disc
and third an audio file as an audio track to another disc.
So I can say, with Mac OS X 10.4.7, the latest plugins and RB 5.5.5, it
works just fine here.
Gru=DF
Christian
--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>
|