Re: iCal question
Re: iCal question
- Subject: Re: iCal question
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 24 Nov 2003 08:38:13 -0800
On 11/24/03 7:07 AM, "David Hanauer" <email@hidden> wrote:
>
Thanks for your reply.
>
>
> Are you in Panther? Some things to do with lists were
>
> improved in AS 1.9.2.
>
>
>
>
I am using Jaguar 10.2.8 and the Script Editor 1.9 and iCal 1.5.1.
That's AS 1.9.1 then. You don't say what the error is that you got with the
large database, but if it was "Stack overflow" then try again when you
upgrade to Panther (with AS 1.9.2). It may be fixed there.
>
>
As for the code you suggested, I had to change the "start time" part
>
to "start date" since the editor didn't seem to recognize "start
>
time" in relation to the event. I'm not sure why.
Because I made a mistake! 'start date' is the correct term, as shown in the
Dictionary. I get it wrong sometimes because I'm much more accustomed to
Entourage's 'start time' for the same property.
>
>
It seems to work for events that only occur on a single day, but what
>
I want is to find events that are occurring within, for example, the
>
next 10 days, but are actually recurring events. Thus, the official
>
start times or dates of these events could have been several years
>
ago but I am interested in knowing if they will recur again on a
>
specific day or date range. Does that make sense? I know it is
>
possible to obtain the recurrence data for an event, but then it
>
becomes necessary to do a _lot_ of work to find out if the event is
>
occurring on the dates in which I am interested. It would be great
>
if iCal could do that work for me, but I'm not sure if it does.
No, it doesn't. I agree it would be a great feature. The app obviously knows
how to do it because it does it in the UI. However - when you think about -
you'll realize that it can only do it for a specific time frame - such as
the month view you see in a UI calendar - it would be impossible with a
recurring event that has no end date. It would be nice if there were a
find occurrences of (first event of calendar 1 whose summary is "Test
Event") from date "11/12/2003" to date "11/18/2003"
based on a command that operates on 'event':
find occurrences of - reference -- the recurring event
from - date
to - date
I've requested the same thing for Entourage, so far to no avail. A couple of
years ago when writing my "Export-Import Entourage" scripts I worked out a
series of handlers that parse the 'recurrence' property - the iCal format
for recurrence. It's about 40K worth of source code! But it works, and it's
even fast because any path through all the many branchings avoids almost all
the code destined for other branchings. It's extremely tedious, and I can't
imagine many people going to that trouble. It would be good if the app did
it for us, for sure.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.