sending an attachment with entourage

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?

Hi,

yes, to tell us the kind of your variable tAttach.
It works fine, if tAttach is an alias or a a list of aliases

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

What if I wanted to add my “Standard” signature at the end of the message?

I am still getting the

message
It found the proper file.
Without the text

the message goes off but has a warning script in entourage saying do you want to send the script anyway, it may be a virus.

you can deselect the option in Entourage in your preferences panel, check “security”.

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

hm, haven’t you read this ??

yes, my mistake.