Applescript Entourage Exchange

Hello

I’m a fairly new applescript user and appear to be having a problem with adding calendar events to an Exchange server via Entourage.

My team has an individual Exchange account each and a group Exchange account. The individual account is set as the default account, what I would like to do is add events to the group Exchange account. However when I use the following code


tell application "Microsoft Entourage"
    make new event of Exchange calendar with properties "blah"
end tell

It just uses the default (individual) Exchange account. I’m sure that there must be a way to set which account the events are added to, using the Exchange calendar account reference, I just can’t get it to work.

Has anyone tried something similar?

Any help gratefully received.

CL

Hi Chris,

Is this what you have in mind?


set theRecipients to "FullName<email_here>"
set theSubject to "Some Subject"
set theLocation to "Some Location"
set theStartTime to "19:00:00"
set theStartDate to "29 Oct 2007"
set theDuration to "10"
set theContent to "Some Content"
set theStartDateTime to date theStartTime of date theStartDate
set theEnd to the theStartDateTime + theDuration / 60 * hours

tell application "Microsoft Entourage"
	make new event in calendar "Calendar" of Exchange account "Group" with properties {to recipients:theRecipients, subject:theSubject, location:theLocation, due date:theStartDateTime, content:theContent, start time:theStartDateTime, end time:theEnd}
end tell

Cheers
Skip