Re: iCal Alarms
Re: iCal Alarms
- Subject: Re: iCal Alarms
- From: Kevin Patfield <email@hidden>
- Date: Mon, 20 Dec 2004 17:32:13 -0700
On Dec 21, 2004, at 00:24:14 +0200, Cocoa Developer wrote:
Subject: iCal alarms
I am trying to create a program, which should use iCal calendars for
shedulling alarms. My question: is there any way to add event into
calendar by editing calendar file, that iCal launching would not be
required. Because I have tried to add event with alarm manual, but
until iCal is launched, iCal Helper doesn't show my event alarm :(.
It's quite easy to just write into a .ics file, the trick is getting
iCal to notice. The following works for me:
1) determine if iCal is running using NSWorkspace
2) if it is, send it a "reload calendars" message using Applescript
3) if not, tell it to launch and then quit it using Applescript
Kevin Patfield, Phoenix, Arizona
_______________________________________________
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