• 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: Getting recurring event instance for specific day in iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting recurring event instance for specific day in iCal


  • Subject: Re: Getting recurring event instance for specific day in iCal
  • From: John Maisey <email@hidden>
  • Date: Sun, 8 Jun 2008 09:37:07 +0100

I'm trying to script iCal to show an event by passing the UID.
Unfortunately, it seems that only passing the UID to a recurring event
will retrieve the original event.
Because of this, I am trying to shift to passing the summary and start
date since it's a bit more readable in the code.  I've been
unsuccessful in getting this to work successfully.
Does anyone have any suggestions on why this won't successfully fetch
the specific event (assuming it exists).

Aside from the issues with the 'whose' clause that Ed Stocky mentions. When you refer to the 'start date' property of a recurring event it is the start date of the first instance. To find the start date in later occurrences of the event is more difficult. The only way using Applescript to do this would be to calculate when the recurrences occur from the 'recurrence' property of the event, then compare this to your target date range.


John Maisey
www.nhoj.co.uk

_______________________________________________
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
  • Follow-Ups:
    • Re: Getting recurring event instance for specific day in iCal
      • From: Loren Ryter <email@hidden>
  • Prev by Date: Text as list
  • Next by Date: Re: Text as list
  • Previous by thread: Re: Getting recurring event instance for specific day in iCal
  • Next by thread: Re: Getting recurring event instance for specific day in iCal
  • Index(es):
    • Date
    • Thread