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: Rob Jorgensen <email@hidden>
- Date: Mon, 13 Sep 2004 20:18:26 -0400
At 3:50 PM -0700 9/13/04, Tim wrote:
Hi,
I have a script that will upload dropped files to a ftp server. I
have that part working. Now I need to also create an email message
that will provide http links to those files.
the root path is always the same
for example: http://www.mydomain.com/dirforfiles/
I need to also take into account that multiple file paths may need to
be inserted in the body message (when someone drops more than one file
onto the applescript)
here is the code below. I can't even get a simple text message to
appear in body of the message - although the code below also includes
a finder hack that takes just the 'filename' and appends it to the
root path for the http server.
so basically what I want to do is get the filename for each dropped
file and then append it to the root http path and then insert it in
the body of the message.
Is this close to what you need?
property base_URL : "http://www.mydomain.com/dirforfiles/"
on open listofFiles
set urls_ to ""
set nameList to {}
repeat with i in listofFiles
tell application "Finder" to ¬
set filename to name of i
set urls_ to urls_ & ("<" & base_URL & filename & ">" & return)
end repeat
set bodyText to "file(s) can also be downloaded here:" & ¬
return & return & urls_
tell application "Eudora"
set nm to (make message at end of mailbox "out")
tell nm
attach to it documents listofFiles
set field "subject" to "Subject"
set field "from" to "email@hidden"
set body to bodyText
end tell
end tell
end open
-- Rob
_______________________________________________
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