Apple script to setup new entourage account.

I would like to make a script so when I setup a new computer rather then setup entourage ever time. The user could just double click on an apple script and enter there name. The script would do the rest. it would store all the server settings and account settings. Anyone thing this could be done???

I think this will get you started

Cheers Roland

[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

How about for a exchange account??

Ok i think i almost have it working, but it gets stuck on the account id portion. any thoughts

display dialog "Your name here:" default answer ""
set theName to text returned of result
display dialog "First initial of your First Name" default answer ""
set theinitial to text returned of result
display dialog "Enter your Password:" default answer ""
set thePasswd to text returned of result
set theE to word 1 of theName & "_" & word 2 of theName
set theAddress to theE & "@company.com"
set theAcc to word 2 of theName & theinitial
tell application "Microsoft Entourage"
	make new Exchange account with properties {account id:theAcc, name:theName, full name:theName, email address:theAddress, Exchange server:"myexchange", password:thePasswd, domain:"NA", LDAP server:"myldap"}
end tell

Ok i got this much to work. The only part i can not get working is the public folders server. The script chocks on that part. Any suggestions???

display dialog "Your name here:" default answer ""
set theName to text returned of result
display dialog "Your User ID" default answer ""
set theUser to text returned of result
display dialog "Enter your Password:" default answer ""
set thePasswd to text returned of result
set theE to word 1 of theName & "_" & word 2 of theName
set theAddress to theE & "@company.com"
tell application "Microsoft Entourage"
	make new Exchange account with properties {name:theName, email address:theAddress, Exchange ID:theUser, Exchange server:"Exchange Server", password:thePasswd, domain:"NA", LDAP server:"ldap server", Public Folders Server:"EXCHANGE/PUBLIC/"}
end tell