I am having a really bizarre issue with this Entourage script.
This script basically sets up a user’s Exchange account from our build. The systems specialist simply has to enter in the user’s full name and Exchange ID, and the script is supposed to do the rest; for the most part, it does. The weird thing is that it creates the account, brings up the authentication dialog box, allows you to enter your password, attempts to synchronize the mail, but does not synchronize. It does not give you an error message of any kind. It connects to the account, but no mail is downloaded. Next to the Exhcange account icon it says “Not connected.” The option to synchronize the account is grayed out. If I deleted the account and add it manually it is fine.
I was showing this to my boss, and just on a lark, my boss dragged the default entourage email that sits in the local account into the public folder of the Exchange account, and it synchronized. Does anyone have any idea why this would be happening?
Second issue: in the Exchange account setup window, there are two options to set “This DAV service requires a secure connection:” One under the Account Settings tab for the Exchange server, and one under the Advanced tab for the Public Folder Settings. The problem is that there is only one reference to this setting in the Entourage library, and that only sets the option under the Account Settings Tab for the Exchange Server.
If anyone can answer either of these questions, it would be greatly appreciated.
property exchange_server : "https://macmail.mydomain.com/exchange/"
property exchange_public : "https://macmail.mydomain.com/public/"
property domain_email : "@mydomain.com"
property domain_name : "digitas"
property ldap_server : "adnyc.mydomain.com"
set button_result to "No"
-- Ask for user's full name and Exchange ID until user confirms the info is correct.
repeat until button_result is "Yes"
set full_name_returned to display dialog "Please enter the User's full name:" default answer "Users Full Name"
set Full_Name to text returned of full_name_returned
set user_ID_returned to display dialog "Please enter the User's ID:" default answer "USER ID"
set User_ID to text returned of user_ID_returned
set dialog_text to "Is this information correct?" & return & "The User's Full Name is: " & Full_Name & return & "User ID is: " & User_ID
display dialog dialog_text buttons {"No", "Yes"}
set button_result to button returned of result
end repeat
-- set email address based on user input.
set email_address to User_ID & domain_email
-- create account
tell application "Microsoft Entourage"
make new Exchange account with properties {name:Full_Name, Exchange server:exchange_server, Exchange ID:User_ID, domain:domain_name, free busy server:exchange_public, email address:email_address, LDAP server:ldap_server, LDAP requires authentication:true, search base:"", maximum entries:100, partially retrieve messages:false, DAV requires SSL:true}
set the full name of Exchange account Full_Name to Full_Name
end tell