• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help for mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Help for mail.app (From: David Siberry <email@hidden>)

  • Prev by Date: Re: Finder bug
  • Next by Date: Re: Error Types
  • Previous by thread: Re: Help for mail.app
  • Next by thread: Re: Help for mail.app
  • Index(es):
    • Date
    • Thread