Write a script that will automatically import .ics to iCal

Discussion in 'Mac Programming' started by newMacGirl2, Jun 3, 2011.

  1. newMacGirl2 macrumors newbie

    Jun 3, 2011
    I can't for the life of me figure out how this iCal works! I've scoured the web and can't find a single solution! I'm trying to sync up my iCal on my home and work computers (the cheap way - without .mac). I've got the first half working, which is the work calendar publishes to icalx.com and I've got a script on the home computer that will get the calendar .ics file from icalx.com. But once I have the .ics, I can't figure out how to get it to programatically import into iCal.

    Initially, I thought if I just overwrote the files in /Library/Calendar that it would work, but for some reason it's not - there must be more files somewhere else that it's reading from because as a test I deleted the whole Calendar folder and iCal still opened up with all the events and recreated the original folder. Anyway, I did a manual import of my .ics file that I downloaded from icalx.com and that worked perfectly, so I would like to figure out how to script it to run by itself! Anybody have any suggestions?

    By the way, I'm using version 4.0.1 if that makes a difference.

Share This Page