Title: 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
- Re: Exchange setup script -- help! Cunningham, Andrew
- Re: Exchange setup script -- help! Paul Berkowitz
- Re: Exchange setup script -- help! Jeremy Reichman
