I want to add meta data to an iCal event (task) with OpenMeta. Therefor I need the path to the file that contains the event (task). Is there a possibility to get this programmatically if a have a certain CalCalenderItem?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simple answer is you can’t. CalendarStore makes no guarantees about where/how it will store the data, only that it will store it.
In practice (at least right now), everything is kept in a SQLite Core Data store. Files for each individual item are then generated for the benefit of Spotlight.
As I understand it, you are wanting to find the location of those Spotlight files and add metadata to them. But even if you do locate them (which there’s no API for), when the main store is next updated it will probably overwrite your modified record with a fresh version anyhow, defeating what you want.