Trouble refreshing iCal
Trouble refreshing iCal
- Subject: Trouble refreshing iCal
- From: Aram Kudurshian <email@hidden>
- Date: Sun, 29 Jan 2006 11:49:47 -0500
Hi,
I've written a small program that writes To Dos to iCal's calendar
files but am having trouble getting iCal to refresh it's listings
when open. If I write to the file and launch iCal, I have no
problems seeing the new data I've added. However, if iCal is open
and I write to the calendar file, iCal refuses to show changes until
iCal is quit and then relaunched - not an optimal solution as if iCal
makes any changes, it will overwrite my changes.
I've tried using the AppleScript function reload calendars but it
fails to do anything at all. I don't know whether this is broken or
just the way it works.
So, has anyone devised a solution into forcing iCal to reload it's
calendar listing? I was thinking of using AppleEvents but my
knowledge of the matter is close to nothing. The only thing I've
been able to do so far is download Script Debugger and determine that
the simple AppleScript:
tell application 'iCal'
reload calendars
end tell
...is translated into the following events:
'ascr'\'tell'{ '----':'psn '($0000000003EC0001$) }
'wrbt'\'aec8'{ &'subj':''null''(), &'csig':65536 }
'ascr'\'tend'{ }
If anyone has done this before or would know how to convert this into
an AppleEvent that my program could send, I'd be greatly
appreciative. Or, does anyone know of any workarounds that could
have my desired effect?
Thanks,
Aram Kudurshian
Aram Kudurshian
Hamilton College
198 College Hill Road
Clinton, NY 13323
www.kudurshian.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden