Re: iCal moving events to calendar not working
Re: iCal moving events to calendar not working
- Subject: Re: iCal moving events to calendar not working
- From: "Nigel Garvey" <email@hidden>
- Date: Sat, 26 Jul 2008 16:26:39 +0100
"David A. Cox" wrote on Fri, 25 Jul 2008 16:36:17 -0700:
>Thanks for the more improvements to the efficiency of the script. I
>will look at the suggestions in the context of my scripts (this is a
>simplified version of the script, and this section only deals with the
>events if the system is a 10.5 system. But I think the suggestions
>that you have will improve the code.
>
>If all the events do end up moving, then that was a mistake in my
>cleaning up the code too much :). I think that all TENTATIVE events
>will move, and all declined and unknown events will move, but if an
>event is not tentative, and I have said I will go to it, it should not
>be moved.
>
>I have seen the problem with things not moving, and the console error
>showing up on every machine I have tested, so I feel like the problem
>must be somehow involved with the code I have written, or something
>odd in iCal.
Many apologies. With the code you posted, events you've accepted _do_
stay where they are. I was distracted by fretting too much about events
where you weren't one of the attendees.
I've now had a chance to set up a test regime on my Tiger machine,
whereby I've created your destination calendars and "MyCal" in iCal and
have populated "MyCal" with 20 test events. iCal 2.0.5 doesn't have a
"status" pop-up in its Info drawer. Not knowing how it assigns event
status automatically, I've created the events by script to reflect each
combination of the four possible event status values (cancelled/
confirmed/none/tentative) and the five possible attendee participation
status values (unknown/accepted/declined/undecided and the 'uninvited'
status implied by the event not having an attendee with the particular
display name). I've given each event one display alarm. This is where my
optimisation of your code leaves everything:
"MyCal":
Cancelled/Uninvited; Confirmed/Uninvited; None/Uninvited;
Cancelled/Accepted; Confirmed/Accepted; None/Accepted;
Cancelled/Undecided; Confirmed/Undecided; None/Undecided
(Alarms not removed)
"-Declined" (alarms removed):
Cancelled/Declined; Confirmed/Declined; None/Declined
(Alarms not removed)
"-Undecided":
Cancelled/Unknown; Confirmed/Unknown; None/Unknown
(Alarms removed)
"-Tent":
Tentative/Uninvited; Tentative/Accepted; Tentative/Undecided
(Alarms not removed)
"-Tent-Declined":
Tentative/Declined
(Alarms removed)
"-Tent-Undecided":
Tentative/Unknown
(Alarms removed)
Does that agree with what you're expecting, or with the results you're
getting? I'm not having any running problems so far.
If your code's only executed in 10.5, that'll be iCal 3.0, I think. Maybe
there's something unstable about that version? Or something different in
its AppleScript implementation?
NG
_______________________________________________
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