Very nice, Den! Thanks!
Rick > -----Original Message----- > From: denstar [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 09, 2008 1:23 AM > To: CF-Talk > Subject: Re: iCalendar (.ics) file creation? > > On Fri, Aug 8, 2008 at 10:18 PM, Rick Faircloth wrote: > >> I've got some code for using ical4j, which is pretty tits. > > > > Ummm...I'm not sure what ical4j is exactly, but from your description > > it sounds like it might be worth checking out. ;o) > > Heh! =] iCal4j [ http://ical4j.sourceforge.net/ ] > > Well, what I have is a little messy, and it's using ColdSpring and a > Javaloader, so let me sorta wrangle it into something that you can > wank with a little easier, including a little sample, perhaps. > > But basically, this is how you create a calendar and then add events to it: > > <cfset var params = structNew()> > <cfset var response = "" /> > <cfset var results = "" /> > <cfset results = variables.icsService.createCalendar() /> > <cfset params["dtstart"] = "2/28/2008" /> > <cfset params["summary"] = "woohoo" /> > <cfset results.addCalendarEvent(params) /> > <cfset params["dtstart"] = "3/28/2008" /> > <cfset params["summary"] = "yayman" /> > <cfset results.addCalendarEvent(params) /> > <cfdump var="#results.print()#"><cfabort /> > > Which is pretty straight-forward. The results will open in > Thundirbird or outlook and ask to add the events to the calendar. > I've got recurring events going as well. > > You can actually do all kinds of nifty stuff with that library, > basically implementing the webcal standard, which seems pretty darned > cool to me. I haven't gotten that far yet tho. > > This code is still a work in progress-- like, you can subscribe to a > calendar in thunderbird and outlook, but iCal doesn't seem to like > them as remote calendars, for some reason. Static events? No problem. > Eh. Eventually I'll track that one down... :-) > > Eventually I'd like to get as far as implementing the webcal stuff > tho, so you can edit events and whatnot with webcal clients like > lightning and ical. > > Eventually. > > Well, lemme see if I can whip up a nice little example for ya and put > it up somewhere. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310609 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

