
March 13th, 2006, 12:21 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Posts: 12
Time spent in forums: 2 h 24 m 32 sec
Reputation Power: 0
|
|
|
Accessing spotlight
Edit: I accidentally double-posted this. Sorry!
Hello, I have a question regarding the use of spotlight.
I'm trying to create a mod for Apache, that will use spotlight to get meta-data from the files that are hosted in a server.
I know how to access the meta-data spotlight store by using the command line (mdls) and also how to directly access it using Cocoa, creating the variables that will hold the different attributes, my question is: Is there any way to port cocoa code that uses foundation types to be used and compiled as a c program...
Since Apache mods can only be created using c or Perl, I want to know if there is any way to translate the code I have in cocoa to code in c, so I can directly access the spotlight store.
The workaround is to do an mdls call and parse that data... but obviously that's not the best way to do it.
Is there any solution to this problem? Even if the solution is a c library that will allow me to access the spotlight API, that will be good to, all I want is to be able to access the spotlight meta-data with a c program in the most efficient way.
Thank you.
Last edited by IGC : March 13th, 2006 at 12:23 PM.
Reason: Double post
|