Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Change the Finder's default Find window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Change the Finder's default Find window
Authored by: McSvenster on Mar 10, '08 03:30:16AM

It seems to me that the search window in the Finder is kind off a preconfigured smart search. But I cannot find out, where its configuration files are.

I thought, that the defaults_smart.plist seems only to include the link to the default search: kMDQueryScopeComputer
I found something in MDQuery.h:

<code>
/*!
@function MDQuerySetSearchScope
@discussion Use MDQuerySetSearchScope to limit the results
returned by the query engine to those MDItemRefs that
appear within the specified directories. This may be
used to limit searching to particular volumes. Tilde
paths, or environment variables are not expanded.
Calling this multiple times will replace the previous
options. This must be called before the query is executed.
@param query The query object to modify.
@param scopeDirectories a CFArray of CFStringRef or CFURLRef objects which
specify where to search. For conveinience, the kMDQueryScopeHome,
kMDQueryScopeComputer and kMDQueryScopeNetwork constants may also
be present in this array.
@param scopeOptions additional options for modifying the search.
Currently, pass 0 (zero).
*/
</code>

As You can see I'm just poking around with little knowledge... But could it be, that there are just the two constants : kMDQueryScopeComputer and kMDQueryScopeNetwork where Finder starts in kMDQueryScopeComputer for searches?

Greetings
Sk



[ Reply to This | # ]