Demo file: 2010-12-13-export to ical
The other day I needed to export some appointments from FileMaker to iCal. I’d never done this before, but I did a bit of reading on Wikipedia and elsewhere, and it turns out to be fairly straight forward. I don’t claim that what follows is in any way authoritative, just that it works… and not just with iCal, but with Outlook, Google Calendar and any other program that recognizes the iCalendar format.
Let’s start with a basic table of appointments, like this.
We’re going to create an “ics” file, which is a text file with three distinct elements. At the beginning of the file is the header, which looks like this:
PRODID:-//FileMaker Pro//NONSGML yourSolutionNameHere//EN
Next we have one or more body entries that look like this:
And at the very end of the file comes the footer, which looks like this: