Accessing the Apple Addressbook and the iCal frameworks

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulclaude
Posts: 121
Joined: Thu Mar 27, 2008 10:19 am

Accessing the Apple Addressbook and the iCal frameworks

Post by paulclaude » Fri Jun 05, 2009 1:33 pm

Is there a way (a library, maybe) to access the Apple Addressbook and the iCal frameworks (no Applescript)?

Thanks
Last edited by paulclaude on Wed Jun 10, 2009 4:22 pm, edited 1 time in total.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Sat Jun 06, 2009 6:19 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Sat Jun 06, 2009 8:06 am

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.

paulclaude
Posts: 121
Joined: Thu Mar 27, 2008 10:19 am

Post by paulclaude » Sat Jun 06, 2009 8:09 am

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.

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 06, 2009 11:44 am

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 :-)

Post Reply