hello again…
i’m new in scripting and i need help scripting entourage… i need to add an attachment to an outgoing mail but i’m not knowing how… everything is working fine in my secript except setting the attachment… when i run the script is says “can’t make class attachemnt”… here’s my script…
tell application "Microsoft Entourage"
set theSubject to "TEST SCRIPT"
set theBody to "TEST OF THE BODDY USING THE NEW SCRIPT"
set theAttachment to "/Users/psychoed/Desktop/test"
set newmessage to make new outgoing message with properties {subject:theSubject, content:theBody}
set attachments to make new attachment with properties {name:theAttachment}
activate
end tell
can anyone help i need this script urgently…
thanks,
psycho-ed:o
tell application "Microsoft Entourage" to ¬
make new outgoing message with properties {subject:"s", content:"b", attachment:{alias "path:to:file"}}
For the next urgency, BTW, you will find very useful the search function of this forum (eg, “entourage AND attachment” will throw the syntax you’re looking for). 
thanks jj,
next time i will do that…
but the script is causing entourage o crash… whenever i run the script entourage crashes and i get and error “Microsoft Entourage got an error: Connection is invalid.”
my script is
tell application "Microsoft Entourage"
set theSubject to "TEST SCRIPT"
set theBody to "TEST OF THE BODDY USING THE NEW SCRIPT"
set theAttachment to "Macintosh HD:Users:psychoed:Desktop:test"
make new outgoing message with properties {subject:theSubject, content:theBody, attachment:{alias theAttachment}}
activate
end tell
can u pls help me figure what’s wrong?
thanks
psycho-ed
Works fine here (Entourage 2004). Perhaps it was different in Entourage X?
Try modifying this one, just in case: “make new outgoing message at out box folder with properties…”
i’m also using entourage 2004 version 11.2.0 (050811) and i tried the “at outbox folder” but it’s still doing the same thing… i’ll try it on a different machine and let you know…
thanks a lot,
Psycho-ed
thanks jj it worked…
it seems that i have a problem on the other machine…
the script is working fine but i want the send messagewidow to be opened so that the user directly writes the recipients he wants. instead the message is bein put in the output window…
Regards,
Psycho-ed