On May 12, 2013, at 14:51, Kerry Dawson <
email@hidden> wrote:
I have been able to create two scripts for newly created emails - one which uses one email ID I use for friends on mail.app (iCloud) and another for business acquaintances. What I can't seem to do is create a script for an email like this that has my standard email address come up and I need to change that and the signature.
______________________________________________________________________
------------------------------------------------------------------------------------------
set toName to "John Smith"
set _subject to "Test Message"
set _body to "Now is the time for all good men to come to the aid of their country."
set _sig to "Chris_Sig"
tell application "Mail"
set _sig to signature _sig
set _msg to make new outgoing message with properties {subject:_subject, content:_body & return & return}
tell _msg
set visible to true
make new to recipient at end of to recipients with properties {name:toName, address:toAddress}
set sender to _sender
set message signature to _sig
end tell
activate
end tell
------------------------------------------------------------------------------------------
It is possible to search the list with Google:
You also should have some example scripts for Mail on your system.
/Library/Scripts/Mail Scripts/
One of those is 'Create New Message.scpt', and it contains an example of using a signature.
--
Best Regards,
Chris