Re: [MacRuby-devel] Trying to use spotlight programmatically

2011-03-01 Thread Franco Rondini
e, 1 Mar 2011 00:12:53 +0100 > From: Franco Rondini > To: macruby-devel@lists.macosforge.org > Subject: Re: [MacRuby-devel] Trying to use spotlight programmatically > Message-ID: <3964bba2-bb57-4860-b45b-39b3e1742...@yahoo.it> > Content-Type: text/plain; charset="us-ascii&quo

Re: [MacRuby-devel] Trying to use spotlight programmatically

2011-02-28 Thread Franco Rondini
Hello , The code posted by Kaelin works great for me, After counting the number of search results now I would like to know the path of files found but to do this I have big difficulty I'm trying to figure out how to make it works the MDQueryGetAttributeValueOfResultAtIndex or MDItemCopyAtt

Re: [MacRuby-devel] Trying to use spotlight programmatically

2011-02-08 Thread Kaelin Colclasure
Martin, The FinderFilesOnly stuff is not really relevant to other applications using Spotlight. You should not need to do anything special to find email results. Try, for example, using the mdfind command from Terminal: $ mdfind -literal 'kMDItemAuthorEmailAddresses == *' If your query is not