• 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: displaying url messages in the Body field of Eudora
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying url messages in the Body field of Eudora


  • Subject: Re: displaying url messages in the Body field of Eudora
  • From: Sander Tekelenburg <email@hidden>
  • Date: Tue, 14 Sep 2004 02:37:01 +0200

At 01:54 +0200 UTC, on 2004/09/14, Sander Tekelenburg wrote:

[...]

> tell application "Eudora"
>	try
>		set the_message to (make new message at end of mailbox "Out")
>
>		set field "subject" of the_message to "Subject"
>		set field "from" of the_message to "email@hidden"
>
>		repeat with i in listofFiles
>			tell application "Finder"
>				set filename to name of i
>
>				set bodyText to "file can also be downloaded at
> <http://www.mydomain.com/dirforfiles/"; & filename & ">"
>				-- will fail if the variable nameList is undefined
>			end tell
>			set body of the_message to bodyText
>		end repeat

Whoops! That will just overwrite the body each time. Make that:

tell application "Eudora"
	try
		set the_message to (make new message at end of mailbox "Out")

		set field "subject" of the_message to "Subject"
		set field "from" of the_message to "email@hidden"

		set bodyText to "files can also be downloaded at "
		repeat with i in listofFiles
			tell application "Finder"
				set filename to name of i
				set bodyText to bodyText & ¬
					"<http://www.mydomain.com/dirforfiles/"; & ¬
					filename & ">" & return
			end tell
		end repeat

		set body of the_message to bodyText

	on error m number n
		log {n, m}
	end try
end tell


--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >displaying url messages in the Body field of Eudora (From: Tim <email@hidden>)
 >Re: displaying url messages in the Body field of Eudora (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: Digital Sigs (was IS: ATTN: List Mom: Unnecessary smime attachments)
  • Next by Date: malacoda
  • Previous by thread: Re: displaying url messages in the Body field of Eudora
  • Next by thread: Re: displaying url messages in the Body field of Eudora
  • Index(es):
    • Date
    • Thread