displaying url messages in the Body field of Eudora
displaying url messages in the Body field of Eudora
- Subject: displaying url messages in the Body field of Eudora
- From: Tim <email@hidden>
- Date: Mon, 13 Sep 2004 15:50:20 -0700
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.
the error message that I get is this:
Can't get <<class eBod>> of <<class euMS>> 1 of <<class euMS>> id
1.238271O86E+9 of <<class euMB>> "out" of application "Eudora".
Access not allowed.
code ========
tell application "Eudora" to tell (make message at end of mailbox "out")
attach to documents listofFiles
set field "subject" to ("Subject")
set field "from" to ("email@hidden")
repeat with i in listofFiles
tell application "Finder"
set filename to name of i
set nameList to {filename}
end tell
end repeat
set the bodyText to "file can also be downloaded
here:<br>http://www.mydomain.com/dirforfiles/" & nameList
set bodyText to body of front message
end tell
_______________________________________________
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