At 13:49 -0700 UTC, on 5/15/03, Jim Ault wrote:

> Not sure why I cannot get this to work.
> Eudora 5.2, Mac OS 8.6
> --> set field "x-attachments" of message 0 to ...
> <gives> "Cant make some data into the expected type"

What made you think you should use "x-attachments"?

I don't recall if this was the same in 5.2, but 6's dictionary says:

attach to: Attach documents to a message
        attach to  reference  -- the message to attach the documents to
                documents  a list of alias  -- list of documents to attach
                [spooling  boolean]  -- True to make Eudora copy the document and
attach the copy, and delete the copy when the message is deleted.

Therefore:

set fileList to {alias "MacHD:Desktop Folder:FMkrSessionNotes"}
tell application "Eudora"
        set theMessage to (make new message at end of mailbox named "Out")
        attach to theMessage documents fileList
end tell


--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>