Re: displaying url messages in the Body field of Eudora
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