Re: Sending Mail
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 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