• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iCal Alarms
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: iCal Alarms
      • From: Finlay Dobbie <email@hidden>
    • Re: iCal Alarms
      • From: Phil <email@hidden>
  • Prev by Date: Re: NSBeginAlertSheet (II)
  • Next by Date: Re: NSBeginAlertSheet (II)
  • Previous by thread: iCal alarms
  • Next by thread: Re: iCal Alarms
  • Index(es):
    • Date
    • Thread