• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Eudora Attachments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Eudora Attachments?
      • From: Bill Briggs <email@hidden>
  • Prev by Date: Re: Scripting icon copying: Finder barfs - howcome?
  • Next by Date: Re: Scripting icon copying: Finder barfs - howcome?
  • Previous by thread: Re: string comparison
  • Next by thread: Re: Eudora Attachments?
  • Index(es):
    • Date
    • Thread