Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Connecting to iCal

Connecting to iCal
Thread Tools
Mac Elite
Join Date: May 2001
Location: ~/
Status: Offline
Reply With Quote
Sep 11, 2003, 12:53 AM
 
Are there any open source (Beer or Speech) libraries available for generating vCal files? I've got a little app I wrote to parse dates off particular websites and write them to text files that end up e-mailed to me. What I'd really like to do is write said dates to a vCal file to be stored in ~/Library/Calendars so they will show up in iCal. I've tried writing ICS files by hand but iCal doesn't always recognize them properly despite following the vCal specification.

So I've been looking for a library I can use to help generate vCal files. Maybe more specifically one I can use to generate iCal friendly files. I know iCal is scriptable but I would rather write the app in Objective-C or Java than in AS. I've read the recent O'Reilly articles on reading iCal's calendars but I've had little luck finding a way to write new ones. I want to do the calendaring outside of iCal so I can generate the events from the parsed web page data and have the app reside somewhere besides my Powerbook.
     
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Sep 11, 2003, 11:52 AM
 
Why not write the program in Obj-C and then use call an Applescript from within the program to add events to a calendar?

That is what I do, and it works pretty well.
     
Mac Elite
Join Date: May 2001
Location: ~/
Status: Offline
Reply With Quote
Sep 11, 2003, 01:06 PM
 
I suppose I could do that but I think it would be a little more complicated than I want and wouldn't be as flexible. I'd like to be able to write the ICS files so I can store them remotely and subscribe to them in iCal. I'd rather do the regex in Java or Objective-C than in AS, even if the output file of the program was simplified. Thanks for the suggestion, I might end up doing that.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2