问题
I am trying (and failing) to import an ics file that contains multiple events. When I include just one event the import works (I'm using iCal). As soon as a second event is there it fails.
Each event is enclosed in BEGIN:VEVENT...END:VEVENT tags.
Can anyone tell me what's wrong with this ics file?
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Foobar Foobar//NONSGML Foobar Foobar//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:PBSTI000000000017Z@foobar.com
DTSTAMP:20111210T161211Z
DTSTART:20111210T210000Z
DTEND:20111210T230000Z
TRANSP: TRANSPARENT
SUMMARY:Foobar - foobar
DESCRIPTION:Foobar - foobar
END:VEVENT
BEGIN:VEVENT
UID:PBSTI000000003246Z@foobar.com
DTSTAMP:20110824T161211Z
DTSTART:20110824T170000Z
DTEND:20110824T170000Z
TRANSP: TRANSPARENT
SUMMARY:Foobar - foobar
DESCRIPTION:Foobar - foobar
END:VEVENT
END:VCALENDAR
Thanks in advance.
回答1:
You can have a file with multiple events, and it will work fine if users explicitly import it (through File->Open->Import), but double-clicking imports only the first event.
来源:https://stackoverflow.com/questions/8319183/ical-file-containing-multiple-events-doesnt-import-single-event-works-fine