scripting Entourage shared calendar
scripting Entourage shared calendar
- Subject: scripting Entourage shared calendar
- From: "Peter Robertson" <email@hidden>
- Date: Sun, 18 Jan 2009 08:53:17 -0500
- Thread-topic: scripting Entourage shared calendar
Does anyone know how to add events to a shared exchange calendar?
I'm able to add events via applescript when I am using the account to which the calendar belongs but when trying to script it via another user account which has access privileges I can't figure out how to refer to the shared calendar. I can't seem to get the calendar id of the shared calendar so I can refer to it.
With an exchange calendar which is NOT being shared I can just refer to it by calendar id which can be obtained by using--
set theCals to every calendar of Exchange account "account name"
--shared calendar id's are NOT returned with this command because they belong to a different Exchange account? How can I refer to a shared calendar which shows up as a calendar beneath a second Exchange Account icon inside of my Entourage exchange account underneath the calendar tab?
Or I suppose another way to get the calendar id might be to get the calendar id of of a selected event.
The script below returns the event id of an event on the shared exchange account calendar for which I am trying to find the calendar id. Is there a way to get the calendar id of the event id is known?
Thanks.
tell application "Microsoft Entourage"
try
(*get the currently selected event(s)
(in calendar or custom view) *)
set theEvents to (get selection)
if theEvents = {} or class of (item 1 of theEvents) is not event then error number -128
on error
(*if there are no events selected, or the first item selected
is not a calendar event, warn the user and then quit*)
beep 2
display dialog "First select an event in the calendar or" & "a custom view. Then try again" buttons {"Cancel"} default button 1 with icon 0
end try
return calendar ID of theEvents???
end tell
Pedro
<<winmail.dat>>
_______________________________________________
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