Title: Re: Exchange setup script -- help!
The scriptability of Exchange accounts is very limited in Entourage 2004 - all sorts of features missing. There's no equivalent for
Synchronize all items to server" or the other synchronization settings. I guess you can't just ask the users to go into Advanced pane and do that themselves?
I'll forward this to someone who has been setting up Exchange accounts in Entourage for an entire university of Macs. Maybe he knows a way. I'll let you know.
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Microsoft Office you are using - **2004**, X or 2001. It's often impossible to answer your questions otherwise.
From: "Cunningham, Andrew" <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
Date: Mon, 09 Aug 2004 10:46:58 -0500
To: Entourage Talk <[EMAIL PROTECTED]>
Subject: Exchange setup script -- help!
Guys:
I took your advice and created an AppleScript to automate Exchange account setup in Entourage. Everything works great; the account gets created, all info appears correct. However, the account never actually begins to sync with the server. Here is my script:
set username to do shell script ("echo $USER")
tell application "Finder"
activate
display dialog "What is your full name?" default answer ""
set fullname to text returned of the result
display dialog "What is your password?" default answer ""
set pass to text returned of the result
display dialog "Please verify your password" & "
" & pass & "
" & "Is this correct?" buttons {"Yes", "No"}
if the button returned of the result is "No" then
repeat until the button returned of the result is "Yes"
display dialog "Please re-enter your password" default answer ""
set pass to text returned of the result
display dialog "Please verify your password" & "
" & pass & "
" & "Is this correct?" buttons {"Yes", "No"}
end repeat
display dialog "Creating exchange account."
tell application "Microsoft Entourage"
make new Exchange account with properties {name:"Butler", Exchange server:"http://outlook.butler.edu/exchange", Exchange ID:username, full name:fullname, password:pass, email address:username & "@butler.edu", domain:"butler.edu", free busy server:"outlook.butler.edu/public", LDAP server:"butler.edu", DAV requires SSL:"true"}
end tell
else
display dialog "Creating exchange account."
tell application "Microsoft Entourage"
make new Exchange account with properties {name:"Butler", Exchange server:"http://outlook.butler.edu/exchange", Exchange ID:username, full name:fullname, password:pass, email address:username & "@butler.edu", domain:"butler.edu", free busy server:"outlook.butler.edu/public", LDAP server:"butler.edu", DAV requires SSL:"true"}
end tell
end if
end tell
Is it possible that my credentials (i.e. Password) are not being handled properly? Everything works fine when I create the account by hand, so I’m stumped. Any advice appreciated (and thank you for getting me this far)!
--Andy
- Exchange setup script -- help! Cunningham, Andrew
- Re: Exchange setup script -- help! Paul Berkowitz
- Re: Exchange setup script -- help! Jeremy Reichman
