• 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
Re: Adding attachment to Eudora...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding attachment to Eudora...


  • Subject: Re: Adding attachment to Eudora...
  • From: John Delacour <email@hidden>
  • Date: Wed, 23 Oct 2002 19:02:45 +0100
  • Mac-eudora-version: 5.3a6

At 12:41 pm -0400 23/10/02, graphics wrote:

Here is what I currently have (o, btw I am rather new to applescript):

set theFile to "Macintosh HD:swss_test-please_delete.txt"
tell application "Eudora"
set fileList to (theFile as list)
activate
set newMsg to make new message at end of mailbox "Out" of mail folder ""
set field "to" of message 0 to "email@hidden"
set field "subject" of message 0 to "The Subject"
set field "cc" of message 0 to "email@hidden"
set field "bcc" of message 0 to "email@hidden"
set field "" of message 0 to "This is the body of the message."
attach to newMsg documents fileList
end tell

Your only actual error is to have a list of pathname(s) instead of a list of alias(es), so one way or another make sure to get an alias into the list rather than a string.

It is never necessary to refer to the mail folder unless you have two mailboxws with identical names in different folders. Even so, the one in :MailJFolder: will always take precedence.

The word 'new' is always redundant after 'make'.

You can also use a reference to the message and tell this, rather than typing all those "of message 0".


set f to "" & (path to startup disk) & "junk.txt"
open for access file f -- just to make
close access file f -- sure it exists
tell app "Eudora"
tell (make message at end of mailbox 2)
set field "to" to "email@hidden"
set field "subject" to "The Subject"
set field "cc" to "email@hidden"
set field "bcc" to "email@hidden"
set field "" to "This is the body of the message."
attach to it documents {alias f}
end
end

-- JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Adding attachment to Eudora... (From: graphics <email@hidden>)

  • Prev by Date: Re: URL Access Scripting and WebStar
  • Next by Date: Re: Eudora Settings was Re: User N...
  • Previous by thread: Adding attachment to Eudora...
  • Next by thread: Re: Adding attachment to Eudora...
  • Index(es):
    • Date
    • Thread