Re: Help for mail.app
Re: Help for mail.app
- Subject: Re: Help for mail.app
- From: kai <email@hidden>
- Date: Fri, 13 May 2005 19:11:54 +0100
On Friday, May 13, 2005, at 02:39 pm, David Siberry wrote:
Hi I am trying to write a script to create an e-mail account in
Mail.app. but when i try and compile the script below i get the
following error: "Mail got an error: NSArgumentsWrongScriptError"
Can anyone help, what am i doing wrong?
tell application "Mail"
set m to make new pop account
set name of m to "David"
set user name of m to "Sibs"
set server name of m to "pop.mail.com"
set password of m to "password"
set full name of m to "David Siberry"
set email addresses of m to "email@hidden"
end tell
Try this, David (one line - watch for wraps):
----------------
tell application "Mail" to make new pop account with properties
{name:"David", user name:"Sibs", server name:"pop.mail.com",
password:"password", full name:"David Siberry", email
addresses:{"email@hidden"}}
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden