Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Change iCal attendee attendance status via script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Change iCal attendee attendance status via script
Authored by: ephramz on Sep 06, '06 08:06:29AM

Aha! I figured out what the problem was! It doesn't work on attendees that don't have email for some reason. I realized that I had put in test attendees with no email to make sure it didn't send out email to them by accident, and iCal doesn't seem to like to visually change the status of these attendees. It works fine, even without the add attendee/delete attendee trick at the end.

Not sure if we can get it to work with non-email attendees (give them a dummy email?) since these are exactly the kind of attendees one would like to use them with since we can't email them the invite!



[ Reply to This | # ]
10.4: Change iCal attendee attendance status via script
Authored by: ephramz on Sep 06, '06 08:24:08AM
Yep! That does the trick. It has to be a valid format email address, i.e. something@something.something, not just some random text, and the blank email is set to "nomail" not "", so just add this line
if email of the_attendee is "nomail" then set email of the_attendee to "has@no_email.com"

above this line

set the participation status of the_attendee to the_new_status

in any of the above scripts and it should do the trick!

[ Reply to This | # ]

10.4: Change iCal attendee attendance status via script
Authored by: ephramz on Sep 06, '06 09:59:05PM
Actually that line in the last message should be
if email of the_attendee is "nomail" then set email of the_attendee to (first word of ((display name of the_attendee) as string)) & "_"& (last word of ((display name of the_attendee) as string)) &"_has@no_email.com"
since each attendee needs a unique valid email, so this tries to do that with the first and last name

[ Reply to This | # ]