H
Harinder S. Bawa
Thanks for your help (Barry). I can't seem to find the correct syntax for
adding the attachment. After plagiarizing many scripts, this is what I came
up with:
set theName to "My Name"
set theAddress to "[email protected]"
set theSubject to "someSubject"
set theAttachment to "/Users/myUsername/Desktop/scratch.rtf "
set theSender to "[email protected]"
set theBody to "Here is some body text."
set theAttachment to theAttachment as text
tell application "Microsoft Entourage"
set newMessage to make new outgoing message with properties
{subject:theSubject, sender:theSender, to recipients:theAddress,
content:theBody & return & return}
make new attachment with properties {name:theAttachment}
activate
end tell
I get the error "Microsoft Entourage got an error: Some data was the wrong
type."
Help please. Thanks.
Harinder
adding the attachment. After plagiarizing many scripts, this is what I came
up with:
set theName to "My Name"
set theAddress to "[email protected]"
set theSubject to "someSubject"
set theAttachment to "/Users/myUsername/Desktop/scratch.rtf "
set theSender to "[email protected]"
set theBody to "Here is some body text."
set theAttachment to theAttachment as text
tell application "Microsoft Entourage"
set newMessage to make new outgoing message with properties
{subject:theSubject, sender:theSender, to recipients:theAddress,
content:theBody & return & return}
make new attachment with properties {name:theAttachment}
activate
end tell
I get the error "Microsoft Entourage got an error: Some data was the wrong
type."
Help please. Thanks.
Harinder