• 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 Recurring events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal Recurring events


  • Subject: Re: iCal Recurring events
  • From: Gil Dawson <email@hidden>
  • Date: Mon, 21 Jun 2010 17:18:39 -0700

Many thanks to Nigel Garvey for his gargantuan effort in creating a most interesting approach to the problem of visiting every iCal event, including recurring events.  I can appreciate the work it would take to test all that code fully and the annoyance of finding that Apple breaks the code with each iCal version upgrade.  That Nigel's code works at all is testimony to his tenacity and genius.

If anyone should hear about an alternative method in AppleScript for visiting iCal events that includes visiting recurring events, I would appreciate knowing about it.

There is an interface for fetching events on the Apple Developer Website using a framework called Calendar Store that appears to do what I have described.  Any suggestions on how I might could (learn to) access this interface via AppleScript would be appreciated.

--Gil


On Dec 3, 2009, at 1:23 PM, Nigel Garvey wrote:

Gil Dawson wrote on Wed, 2 Dec 2009 12:20:29 -0800:

Re: Mac OS X 10.4.11 (Tiger); iCal Version 2.0.5 (1069)

I'd like for my script to visit every event in a calendar for a time  
period. The following script misses recurring events whose first  
occurrence's start time is before the time period:

I looked at RFC 2445 Section 4.8.5 to see what the recurrence strings  
look like. Hoo Boy! Writing that code (and testing it!) would indeed  
be extremely complex and tedious.

Has anyone scripted this? (Kudos if so!)

Or, perhaps, is there some model code somewhere that we could adapt?

My own effort returns the details of the next recurrence (or occurrence)
of a given event (identified by UID) after a given date/time. You're
welcome to fool around with it.

<http://macscripter.net/viewtopic.php?id=29516>

There's some sample calling code in a comment at the end of the script.

NG




 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: System Events: window id's instead of window names?
  • Next by Date: Re: Folder actions and Leopard
  • Previous by thread: Fwd: System Events: window id's instead of window names?
  • Next by thread: AppleScript and Leopard
  • Index(es):
    • Date
    • Thread