PDA

View Full Version : reload ical calendars from file with ical open




mjdth
Jan 23, 2006, 12:57 PM
I have a separate application that generates a .ics ical file, and everything works great with the syncing to iCal EXCEPT that if iCal is open the information will not be shown until the next launch of iCal. I've tried using:

tell application "iCal"
reload calendars
end tell

but that does nothing. I've also tried manually right clicking on the calendar list and selecting refresh all, but that does nothing.

Is there any way to update the calendar without forcing iCal to quit and then relaunch?

Thank you.



Mitthrawnuruodo
Jan 23, 2006, 01:27 PM
You could try to subscribe to the calendars from localhost (or directly from disk) instead of just opening them. Then you should be able to use the "refresh" feature...

Edit: It seems that you can suscribe to a local file with Calendar -> Suscribe and then give the address: file:///path/to/calendar.ics

I cannot test it right now, because I don't have an iCal file not already in my library, but it should work, and if not, put it in your Sites folder, turn on websharing and use webcal://localhost/username/calendar.ics to subscribe to it... :)

bohemier
Sep 27, 2010, 04:21 PM
I know this is an old post, but I'm trying to do exactly this: subscribe to a local .ics file using:

file:///Users/admin/Dropbox/mycal.ics

and iCal says:

iCal can’t subscribe to Internet addresses starting with “file”….

I prefer to keep my calendar as .ics cause I sync it through multiple platforms through Dropbox...

Anyone knows how I could do this?

Thanks!