On Jul 26, 2010, at 5:59 PM, Dave DeLong wrote:

> Yeah, I'm actually trying to expand Spotlight queries into a different format 
> so I can execute them on a SQLite database

Huh?  I can't figure out what you mean by that.

You want to let Spotlight find things from within a database?  Then you want to 
write an importer, although that may still not give you what you want, since 
Spotlight is file-oriented.

Or you want to add features to the Spotlight query language?!?  Or you want to 
create an alternative query language for Spotlight queries?

Or you want to query an SQLite database and you're for some reason considering 
Spotlight for that, rather than ordinary SQL or predicates or whatever?

Whatever it is that you're trying to do, it sounds like you're trying to 
shoehorn a technique/tool appropriate to some circumstances into another 
circumstance where it isn't appropriate.

Finally, if you want to make an SQLite database indexable by Spotlight, maybe a 
MacFUSE file system view into the database would help?


> , and the process doing this is a root-level daemon, which means I can't use 
> NSMetadataQuery, because it returns different results when run as root versus 
> when run as a user.
> 
> The lsregister -dump option is intriguing, and as a worst-case scenario, I 
> could execute that via NSTask and parse out the results (though this would 
> definitely be a last resort).

I'm not at all certain that LaunchServices (and lsregister -dump) gives the 
same results when run as root vs. a normal user.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to