Create New Mail Account.scpt does not work correctly
Create New Mail Account.scpt does not work correctly
- Subject: Create New Mail Account.scpt does not work correctly
- From: "Fares BELHAOUAS" <email@hidden>
- Date: Mon, 27 Aug 2007 09:57:48 -0400
Hallo everybody,
I put a post before about how to can add a new pop account within Mac Mail, and the solution was to use one apple script example "Create New Mail Account.scpt" located in "/Library/Scripts/Mail Scripts", I tried to modify this apple-script to add a new account with other options that are not in the example. like use SSL, and port. etc.
tell application "Mail"
...
--// create newPopAccount
...
tell newPopAccount
set uses SSL to true
set port to 995
set authentication to password
end tell
...
--// create newSMTPAccount
tell newSMTPAccount
set uses SSL to true
set port to 465
end tell
--//
end tell
I create one SMTP account before, just to don't have an empty list of SMTP servers.
I don't put any quit at the end of my script, the script works fine, I see Mac Mail, and I find that all is correct, I close Mac Mail, I open it again, and I see that all changed, the port of my pop account changed, the SSL is not checked, the same thing for the smtp server.
I tried to use the original script as it is, and it does the same problem amd more, first, the setDeletionPolicy does not work correctly, it gives an applescript error, second, there is an other error, due to the fact that if I use the Password authentication and I give the user name, the SMTP server becomes referenced by "servername:username" instead of the original name "servername", this makes the script cannot find the wanted SMTP server, finally, and after to fix all those problems, I have the same problem as explained before, all configurations done by apple script are lost, when I put more advanced options, as Port, use ssl, authentication, etc.
Does any one have an idea, or did deal with this before, thanks for your help
--
Fares
Integration New Media
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden