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 23:08:53 -0600
On Feb 15, 2005, at 17.40, Paul Berkowitz wrote:
But it does have a new recurrence string showing the new "UNTIL=" or
"COUNT=" ending on the last unchanged occurrence date. Then there's a "gap"
and the new recurring event with a new recurrence string picks up from a new
starting date. If you rescheduled just one event, that event is now a
separate creation, a non-recurring event. The original recurring event does
show a new modification date ('stamp date') so you can simply take note of
its new recurrence string. The single non-recurring event, if any, and the
new recurring event picking up after that one, are both new events with new
creation dates (and thus 'stamp date') as well.
Okay, I'm not sure if I'm following you, but if I am, that doesn't seem to be what's happening on my machine.
What you seem to be saying: I create a recurring event, that recurs daily, starting on the 1st at noon. This will create an Event in the Calendar (we'll call it Event A). Event A has recurrences (A.1, A.2, A.3, …) that occur on the following days, but don't actually exist as Events per se, we have to multiply them out to figure out when they occur. Now, I reschedule the recurrence on the 4th to be an hour later. At this point, the Recurrence string changes and in addition to the frequency data, it will now contain something that basically says "until the 4th." Also at this point, a new Event (Event B) will be created on the 4th at 1 pm to represent the new time for the event, and still another Event (Event C) will be created on the 5th at noon that shows the original recurrence characteristics of Event A to represent all of the recurrences yet to come. What happens if I also reschedule the event on the 5th? Will Event C be morphed in to a non-recurring event and Event D will be created on the 6th, or will Event C be deleted, with Event D being created on the 5th and Event E being created on the 6th?
What seems to be happening: I create a recurring event, that recurs daily, starting on the 1st at noon. This will create Event A in the Calendar, just as above. Now, I reschedule the recurrence on the 4th to be an hour later. At this point, a new Event (Event B) will be created on the 4th at 1 pm to represent the new time for the event, and this Event has the same UID as Event A, tying them together, and also has a hidden property (RECURRENCE-ID , found in the .ics) that basically says, "I'm the recurrence that was supposed to take place on XXX." There are no other Events in the Calendar. If I also reschedule the event on the 5th a new Event (Event C) will be created on the 5th at 1 pm and will have they same UID as Events A and B, and its RECURRENCE-ID will say, "I'm the recurrence that was supposed to take place on XXY."
When I ask the Calendar to give me all of the Events it contains, it only shows the Events reflected by the second scenario. When I look at the .ics file, it only shows the Events reflected by the second scenario. The actual line of code I'm using to retrieve them is:
tell theCalendar to set theEvents to every event whose ((summary is "Relevant") and (start date < rangeEnd))
Right. Only when you _delete_ an occurrence, rather than "reschedule" one.
Okay, that seems to be working as expected. It's a list of dates to skip because they were deleted. The RECURRENCE-ID property that appears in Events B and C of the second scenario seems to be the analog of Excluded Dates. Rather that a date field that says, "The recurrence on XXX was deleted, skip it," it's a date field that says, "I'm the recurrence that was supposed to be on XXX, skip it."
I'm not clear on why you'd need that tag.
Because I'm not sure how to make it work like you say it should, and I can't figure out any other way to derive the information I need from the data I have.
P.S. Oh, okay, here we go. I did a little more experimenting and discovered that if, when you reschedule the recurrence on the 4th, you make the reschedule take effect for "This and All Future Dates" it will behave as you describe, with the exception of Event B playing the role played by Event C and consequently no creation of Event C. However, if you make the reschedule take effect for "This Event Only" it will behave as I described. Unfortunately, this is my work schedule so 90% of all changes to it are going to be transitory and not a "permanent" reschedule, so yes, I really do need to figure out either how to read the RECURRENCE-ID or work around the fact that I can't. Glad I bumped in to you though. Otherwise I'd have been lost when and if I do finally make a permanent change to the schedule. ^^
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