I am trying to attach some files to a group email, but the script I am using will only send the email and not the attachments. Can someone please help me with this…
The script I am trying to make work is:
set newMsg to (make new outgoing message with properties {content:msgBody, subject:msgSubject}) -- create the message
tell newMsg
set theFont to "Arial"
set the content to msgBody
set font of content to theFont
set size of content to (18)
set visible to true
make new to recipient at end of to recipients with properties {name:eachPerson's _name, address:eachPerson's _address} -- add the recipient
tell newMsg
make new attachment with properties {file name:alias "JDLO-JAD HD:Users:jdlojad:Desktop:HappyChristmas2012.png:XmasNZIFCR2012.png"} at after last paragraph -- add attachments
end tell
end tell
tell newMsg
make new attachment with properties {file name:alias "JDLO-JAD HD:Users:jdlojad:Desktop:HappyChristmas2012.png:XmasNZIFCR2012.png"} at after last paragraph -- add attachments
end tell
With:
tell content to make new attachment with properties {file name:“JDLO-JAD HD:Users:jdlojad:Desktop:HappyChristmas2012.png:XmasNZIFCR2012.png” as alias} at after the last paragraph
Thank you for that.
I managed to do it in the end by attaching each file separately.
I could not get your tell content to make new attachment with properties to work
I was trying to set a signature in the email and that would not work, so was trying to attach a file signature as one of the attachments.
I am now trying to make a script for personalizing emails to be individually addressed to a large group, but seem only to be able to send it to the first named and not the rest!