Re: Excluded Dates in iCal Events
Re: Excluded Dates in iCal Events
- Subject: Re: Excluded Dates in iCal Events
- From: The Server Surfer <email@hidden>
- Date: Tue, 15 Feb 2005 15:29:00 -0600
I figured it out, sort of. When you detach a recurrence by
rescheduling it, a new event is created at the new time, with the same
uid as the original event. The original event does not have anything
added to its excluded dates. It turns out that excluded dates entries
are only created when a recurrence is deleted completely. When a
recurrence is rescheduled, the reschedule is given a property which is
listed in the .ics file as RECURRENCE-ID. This lists the date at which
the recurrence was originally supposed to take place.
Now my problem is that RECURRENCE-ID doesn't seem to correspond to any
of the event properties listed in the dictionary. Does anyone know
what this property is called? If not, does anyone know a way to query
an item and find out what all of its properties are? I could write
something to parse the .ics file, but that's a lot of work to find one
bit of data that it seems like I should have access to already, and I
have no idea how often the .ics is actually updated, so I could be
getting stale data.
On Feb 11, 2005, at 12.55, The Server Surfer wrote:
I'm writing a script that collects all of the Events in a certain date
range that have a common Summary, but I wasn't finding all of the
Events I was expecting to find. It turned out that the recurring
Events that recurred during said date range weren't being shown, as
those Events are only considered to exist on the "origin" date, so as
a result, I was only seeing the recurrences that had been detached.
So now I am examining all of the Events that occur before the range
I'm actually interested in, and checking to see if they have a
recurrence that intersects said range. My current problem is
determining which recurrences have been detached. For example, I have
a weekly event that began on Feb 2, 2005. When that event took place
on the 9th, I had to start an hour late, so I detached the recurrence
by rescheduling it. The trouble is, if I "multiply out" the original
Recurring Event I will show an event taking place at the original time
on the 9th, even though that event shouldn't "exist" because now we
have a discrete entry for the reschedule, effectively duping the
event.
So this is where the Excluded Dates property comes in to play, right?
As I understand it, Excluded Dates should be a list of Dates that I
should skip when multiplying out the recurrences of an Event. Simple
enough, but I can't seem to figure out how to work with the Excluded
Dates property. Like I said, I assumed it was a list of Dates, and
the iCal dictionary describes it as a Date, but I can't seem to get it
to behave as either, or figure out what it actually is.
So does anyone know how to read the Excluded Dates property and coerce
whatever is in there in to a list of recurrences to ignore?
Love,
The Server Surfer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
Love,
The Server Surfer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden