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)

Posted on Mar 28, 2013 6:07 PM

Reply
16 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't create mail account using AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.