I’m trying to send an attachment through entourage with
tell application "Microsoft Entourage"
make new outgoing message with properties {recipient:EMaddress, subject:email_subject, content:email_content, attachment:tAttach, has html:true}
Without the attachment the message works fine but with it I get the error
. I have tried sending a png and a pdf file but with the same results.
Is there something I am missing?
I’m not sure how to do that.
I tried this but that didn’t work.
tell application "Microsoft Entourage"
make new attachment with properties {file:tAttach} at after the last paragraph
make new outgoing message with properties {recipient:EMaddress, subject:email_subject, content:email_content, attachment:tAttach, has html:true}
set messID to the result
send messID
end tell
the script in your first post works fine, if tAttach is an alias
for example:
set tAttach to choose file
set EMaddress to "john@doe.com"
set email_subject to "Hello"
set email_content to "your file:"
tell application "Microsoft Entourage"
set messID to make new outgoing message with properties {recipient:EMaddress, subject:email_subject, content:email_content, attachment:tAttach, has html:true}
send messID
end tell
I finally got it to work.
the attachment must be specified with an alias of the file path.
set tAttach to alias filePath
tell application "Microsoft Entourage"
make new outgoing message with properties {recipient:EMaddress, subject:email_subject, content:email_content, attachment:tAttach, has html:true}
set messID to the result
send messID
end tell