• 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: Loren Ryter <email@hidden>
  • Date: Sun, 08 Jun 2008 07:43:35 -0400
  • Thread-topic: Getting recurring event instance for specific day in iCal

I would add that:

1. people have written subroutines for parsing the recurrence property but
that it's complicated and you may want to avoid it.  Scott Tooker wrote a
decent one in 2003 for Today's Schedule widget.  I believe I saw another
more recent variant on Script Builders at macscripter.

2. There are going to be serious cross compatibility  issues with
Tiger/Leopard when scripting iCal you should be aware of in particular:

-- using UID vs ID (compiles differently)
-- doing anything with making dates from strings (there are work arounds --
instead of using a date string you can set the month, day, year, hour,
minute of a temporary date object to integers)

3. All this would be resolved on Leopard if Calendar Store support where
part of Standard Additions.   I'm working on a limited call method for this
but no promises any time soon.  Please send feedback to apple about this.


On 06/08/08 4:37 AM, "John Maisey" <email@hidden> wrote:

>> 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


 _______________________________________________
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

References: 
 >Re: Getting recurring event instance for specific day in iCal (From: John Maisey <email@hidden>)

  • Prev by Date: Re: Text as list
  • Next by Date: gui scripting - paste script not working
  • 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