Eudora Attachments?
Eudora Attachments?
- Subject: Eudora Attachments?
- From: Chuck Ross <email@hidden>
- Date: Mon, 26 Feb 2001 11:44:37 -0800
According to the Eudora_and_AppleScript.txt file I downloaded from Eudora's
web site, I can attach a file to an email with code like this:
set theName to "Macintosh HD: myFile"
attach to message 0 documents {theName}
However, when I try to use this with a real file as in the following:
tell application "FileMaker Pro"
set EmailAttachment to ((cell "gEmail_Attachment_Folder_Location" of
current record of layout 0 of database "Surveys.fp5") & (cell
"gEmail_Attahcment_Name" of current record of layout 0 of database
"Surveys.fp5"))
end tell
tell application "Eudora"
attach to message 0 documents {EmailAttachment}
end tell
I get the following error message:
Script Error: Eudora got an error: Can't make some data into the expect
type.
If I comment out the attach line, the script works fine, so it must be this
line that's causing the problem. The path of EmailAttachment is valid as
demonstrated by the following code:
tell application "Finder"
select file EmailAttachment
end tell
Which succesffully selects the icon in the Finder.
Anybody have experience with this and can help me with something I may be
missing?
Thanks,
Chuck