iCal can't import ics file

Discussion in 'Mac Apps and Mac App Store' started by speedfreak007, Nov 9, 2010.

  1. speedfreak007 macrumors member

    Joined:
    May 22, 2009
    #1
    Hey,

    I'm trying to import an ics file (made by a website) in ical.
    When I'm trying to import it, iCal asks me in which calendar but when I click OK, i get the following error:

    iCal can't read this file. there are no activities added... (or something like that, i translated it from dutch).

    This is the ics file:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//KULeuven//Uurrooster//EN
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    DTSTART:20101108T140000
    DTEND:20101108T162500
    SUMMARY:p&O Elektrotechniek, hoofdrichting
    LOCATION:ELEC - lokaal 00.60 (PC-lokaal) (Dehaene W.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101108T163500
    DTEND:20101108T190000
    SUMMARY:p&O Elektrotechniek, hoofdrichting
    LOCATION:ELEC - lokaal 00.60 (PC-lokaal) (Dehaene W.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101109T082500
    DTEND:20101109T102500
    SUMMARY:Elektrische energie en aandrijvingen: hoorcollege
    LOCATION:ELEC - lokaal 00.54 (AUD. A) (Belmans R.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101109T103500
    DTEND:20101109T123500
    SUMMARY:productietechnieken en -systemen: hoorcollege
    LOCATION:C300 - lokaal 00.08 (AUD. B) (Kruth J.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101109T163000
    DTEND:20101109T190000
    SUMMARY:Geïntegreerd practicum nevenrichting werktuigkunde
    LOCATION:C300 - lokaal 03.44 (PC-KLAS 2) (Reynaerts D.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101109T140000
    DTEND:20101109T162500
    SUMMARY:Elektronische basisschakelingen: oefeningen (3Beltwtk1)
    LOCATION:MTM - lokaal 03.19
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101109T142500
    DTEND:20101109T162500
    SUMMARY:Elektrische energie en aandrijvingen: practica (3Beltbbh, 3Beltwtk2, 3Bwtkgmk)
    LOCATION:ELEC - lokaal 00.36 (Groot Labo Machines) (Belmans R.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101110T080000
    DTEND:20101110T102500
    SUMMARY:Optische en akoestische golven: oefeningen (voor 3Beltwtk2, 3Bwtkelt3)
    LOCATION:200B - lokaal 01.14 (Huyse M.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101110T103500
    DTEND:20101110T123500
    SUMMARY:Elektronische basisschakelingen: hoorcollege
    LOCATION:ELEC - lokaal 00.54 (AUD. A) (Steyaert M.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101110T142500
    DTEND:20101110T162500
    SUMMARY:Digitale en analoge communicatie: hoorcollege
    LOCATION:ELEC - lokaal 00.54 (AUD. A) (Nauwelaers B.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101112T082500
    DTEND:20101112T102500
    SUMMARY:Religie, zingeving en levensbeschouwing
    LOCATION:200M - lokaal 00.06 (De Tavernier J.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101112T103500
    DTEND:20101112T123500
    SUMMARY:Optische en akoestische golven: hoorcollege
    LOCATION:200C - lokaal 01.17 (AUD. B) (Huyse M.)
    END:VEVENT
    BEGIN:VEVENT
    DTSTART:20101112T142500
    DTEND:20101112T162500
    SUMMARY:Elektrische energie en aandrijvingen: hoorcollege
    LOCATION:ELEC - lokaal 00.54 (AUD. A) (Belmans R.)
    END:VEVENT
    END:VCALENDAR



    i've checked the snippet with http://severinghaus.org/projects/icv/ and this website says it's valid file. Why can't i add this file to iCal? (it's my school shedule and i want it on my ipod touch without having to add this manually)


    thx!
     
  2. speedfreak007 thread starter macrumors member

    Joined:
    May 22, 2009
    #3
    thx! but it didn't help.

    however, when i upload my ics file to the ics validator (rather than pasting the snippet in it) i get an error:


    Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n (RFC 2445 §4.1).

    Sorry, your calendar could not be parsed.

    Error: Error was: Error at line 1: Expected [BEGIN], read [{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320]
    Cause:

    Context for line 1:
    1: {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
    2: {\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fswiss\fcharset0 Helvetica;}
    3: {\colortbl;\red255\green255\blue255;}
    4:\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0
    5: \deftab720
    6: \pard\pardeftab720\ql\qnatural
    7:
     
  3. DewGuy1999 macrumors 68040

    DewGuy1999

    Joined:
    Jan 25, 2009
    #4
    I don't know what all of what you posted means, but I believe that the above means that it wants \r (carriage return) and \n (new line) rather than \n (new line) only. Can you edit/convert the file to make that possible?
     
  4. speedfreak007 thread starter macrumors member

    Joined:
    May 22, 2009
    #5
    i found the solution. If i paste the code in a wordpad document on a windows machine and save it as .ics it just works.

    still strange it doesn't work when i try this on a mac :s
     
  5. DewGuy1999 macrumors 68040

    DewGuy1999

    Joined:
    Jan 25, 2009
    #6
    I think it's because of the different way that Windows and OS X handle carriage returns and line feeds. Glad to hear you got it working.
     

Share This Page