Can't create mail account using AppleScript
Hi
I am trying to create new mail account (POP) using Apple script "Create New Mail Account.scpt" which is in "/Library/Scripts/Mail Scripts".
by passing commands like this.
script as follows:
tell application "Mail"
make new pop account with properties {name:"mymail" username:"myun" server name :"pop.xxx.xxx" password: "mypwd" full name : "myname" email addresses"{"myemail.gg.com"}}
Somehow it is not creating account, and getting back response as "Account Creation failed".
Can anyone advice how to resolve this.
Thanks in advance.
iMac, OS X Mountain Lion (10.8.2)