I am trying to write a perl script (in OS X 10.2.1) that acts as a web crawler to get a schedule over HTTP, and then write to vCal format. I wrote the file as text, and followed the vcal specs and some iCal export examples, but cannot get it to import into Palm Desktop, iCal, or Entourage. I've tried changing the extension to .vcal, .txt and .ics, to no avail (it was recognized by iCal as .ics, but stopped there since it didn't follow iCal's particular vCal formatting). I was wondering if I could get some help or ideas as to what the problem would be. The file I am writing is as follows:
the overall structure is something like
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
X-WR-TIMEZONE;VALUE=TEXT:US/Eastern
PRODID:-//Tyler Cheung//perl script//EN
X-WR-CALNAME;VALUE=TEXT:M'05 Schedule
BEGIN:VEVENT
DTSTART;TZID=US/Eastern:20021011T111500
DTEND;TZID=US/Eastern:20021011T241500
SUMMARY;ENCODING=QUOTED-PRINTABLE:Microbiology=0A=0D
Fungi
LOCATION

osner LEC
URL:
http://www.hsdb.tufts.edu/hsdb45/class/Medical/7836
UID:
http://www.hsdb.tufts.edu/hsdb45/class/Medical/7836
END:VEVENT
...
...
...
END:VCALENDAR
Any ideas or help would be appreciated.