MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sander Tekelenburg <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 16 May 2003 01:56:33 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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/>

ATOM RSS1 RSS2