AppleScript: how to change participation status of attendee in icalmeeting?

A

anni

hello,

I have created a meeting on ical and attendee accepted the meeting,
then organizer changes duration of meeting, manually doing that
changes participation status of attendee to unknown, but when i have
tried it using apple script, won't work. Then i have tried to change
it using attendees participation status as mentioned in ical
dictionary, but it didn't work...

can any body tell me what is the problem with below script or any
other way to do that..



Applescript:
tell application "iCal"
tell calendar "NewCal"
--try
set Event_Edited to event 1
set end date of event 1 to (end date of event 1) + 1 * minutes
set event_recipients to attendees of event 1
--return participation status of item 2 of attendees of event 1
as string
repeat with i from 1 to count of event_recipients by 1

if display name of item i of event_recipients is not equal
to "user9" then
set participation status of item i of attendees of
event 1 to Unknown display dialog participation status of item i of
attendees of event 1 as string

--return participation status of item i of attendees of
event 1
end if
--set i to i + 1
--display dialog display name of item i of event_recipients
end repeat
end tell
end tell

regards,
anil
 
E

Ed Kimball

hello,

I have created a meeting on ical and attendee accepted the meeting,
then organizer changes duration of meeting, manually doing that
changes participation status of attendee to unknown, but when i have
tried it using apple script, won't work. Then i have tried to change
it using attendees participation status as mentioned in ical
dictionary, but it didn't work...

can any body tell me what is the problem with below script or any
other way to do that..



Applescript:
tell application "iCal"
tell calendar "NewCal"
--try
set Event_Edited to event 1
set end date of event 1 to (end date of event 1) + 1 * minutes
set event_recipients to attendees of event 1
--return participation status of item 2 of attendees of event 1
as string
repeat with i from 1 to count of event_recipients by 1

if display name of item i of event_recipients is not equal
to "user9" then
set participation status of item i of attendees of
event 1 to Unknown display dialog participation status of item i of
attendees of event 1 as string

--return participation status of item i of attendees of
event 1
end if
--set i to i + 1
--display dialog display name of item i of event_recipients
end repeat
end tell
end tell

regards,
anil

This does not appear to be a question about Entourage. Why don't you ask it
on one of Apple's forums?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top