• 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: Sending Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Mail


  • Subject: Re: Sending Mail
  • From: Bryan Vines <email@hidden>
  • Date: Wed, 29 Jul 2009 14:52:20 -0500

Chris,

In the past I've had to use terms such as "make new *item* at end of *items*" when doing certain things in AppleScript. I don't know which is more proper, but in this particular instance, both seem to work for me:

make new to recipient with properties {name:"Chris", address:"email@hidden"}

or 

make new to recipient at end of to recipients with properties {name:"Chris", address:"email@hidden"}

--
Bryan Vines

On Jul 29, 2009, at 2:01 PM, email@hidden wrote:

Date: Tue, 28 Jul 2009 17:00:28 -0500
From: Christopher Stone <email@hidden>
Subject: Re: Sending Mail

The Mail script didn't work for me on Leopard (10.5.7).

No recipients are created, so the email cannot be sent.

Try this:

tell application "Mail"
activate
set newMessage to make new outgoing message
tell newMessage
set sender to "email@hidden"
set subject to "Mail Script"
set content to " This is an AppleScript mail test"
make new to recipient with properties {name:"Chris", address:"email@hidden"}
set visible to true
delay 1 -- so you can see the script in action
send
end tell
end tell


Best Regards,

Chris

 _______________________________________________
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

  • Prev by Date: Automating authorization dialog boxes for keychain certificate permission changes
  • Next by Date: Re: Unwanted dialog if mounting fails
  • Previous by thread: Re: Sending Mail
  • Next by thread: Difficulty Scaling an Image
  • Index(es):
    • Date
    • Thread