Page 1 of 1

Accessing the Apple Addressbook and the iCal frameworks

Posted: Fri Jun 05, 2009 1:33 pm
by paulclaude
Is there a way (a library, maybe) to access the Apple Addressbook and the iCal frameworks (no Applescript)?

Thanks

Posted: Sat Jun 06, 2009 6:19 am
by Janschenkel
Your two options are:
- try to locate and parse the files where AddressBook and iCal store their infromation, or
- write an external in C++ to act as glue between Revolution and the operating system frameworks.

The second option is preferable, as it will survive file format changes. But it means diving into XCode and C++

Jan Schenkel.

Posted: Sat Jun 06, 2009 8:06 am
by mwieder
On the other hand, if you want to go with option 1, the iCal format is documented in an RFC, and parsing through it isn't that hard. Depends on what you want to accomplish.

Posted: Sat Jun 06, 2009 8:09 am
by paulclaude
My question is this: anyone has already made a library or something similar to access those two files (at least to read them)? In effect, to parse the iCal files should not be too difficult, only a problem of time. About the Address book file, the problem is much bigger.

I would love to work in C++ etc., but this is a little beyond my programmer skills.

Posted: Sat Jun 06, 2009 11:44 am
by Klaus
Hi all,

aren't the "AddressBook" files an SQLite database format?
I think Apple uses this internally to store almost everything?
Maybe I'm wrong :-)