On Jan 25, 2007, at 10:10 AM, Aliacta wrote:

I would like to limit the search scope of Spotlight to a particular folder (and its sub-folders).

The current RB implementation doesn't allow this. Can anybody provide an example on how declares could be used?

You should be able to set up the SpotlightQuery, then declare against MDQuerySetSearchScope passing in the SpotlightQuery.Handle. Because of how the MDQuery API is, any change to the query string will cause REALbasic to recreate the MDQueryRef underneath the hood, which will require you to re-set the scope afterwards.

HTH,
Jon


--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.

REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>

_______________________________________________
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>

Reply via email to