• 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: Accessing iCal messages - HELP!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing iCal messages - HELP!


  • Subject: Re: Accessing iCal messages - HELP!
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 15 Jan 2007 21:26:34 -0800
  • Thread-topic: Accessing iCal messages - HELP!

On 1/15/07 9:13 PM, "Jeff Brown" <email@hidden> wrote:

> I'm planning on writing contact software (in either
> Applescript or XCode) that will need to use a
> calendar. iCal is the obvious choice since it is
> Applescript(able). But my software will need to know
> when iCal deletes, creates or changes a calendar
> event, calendar or To Do.
> Does anyone know how I can access the messages sent by
> these iCal events and capture them with my software OR
> who I should ask to find out.

You will need to keep a record of the date and time (current date) each time
you access iCal, retain it as lastSync, and the next time get

    every event of calendar i whose modification date > lastSync

cycling through every calendar i from 1 to (count calendars). That will give
you every new and modified event since the last sync. What it won't give you
is which events have been deleted. Probably the best way to do that is to
keep a record of the uid property of every event, and then get the uid of
every event the next time and see which have disappeared. It's absurdly slow
to do that by standard AppleScript - you will probably want to 'do shell
script' using Perl or Python to do the comparison.

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Accessing iCal messages - HELP! (From: Jeff Brown <email@hidden>)

  • Prev by Date: Accessing iCal messages - HELP!
  • Next by Date: Grab software
  • Previous by thread: Accessing iCal messages - HELP!
  • Next by thread: Re:Re: Accessing iCal messages - HELP!
  • Index(es):
    • Date
    • Thread