After discovering to my horror yesterday that Netscape 7 is capable of sending complex HTML messages with inline graphics and files and Entourage X/2004 can't, I put together a script (based on a script, "Send Complex HTML X", by the ever-extraordinary Paul Berkowitz) that gives our favourite email client that exact capability.
Send Complex HTML with Inline Files 2004 (longest AppleScript name ever?) will 1) take an arbitrary HTML file and embed it in an outgoing Entourage message 2) better still, it will parse the HTML for links to files (images, Flash files, etc: as long as they're referenced using src= or SRC= in the code and are stored in the same folder as the HTML file; if you reference the file with src="http://...", the script will leave that reference alone)... 3) attach the file to the message with base64 encoding (using UNIX magic to guess the MIME type)... 4) then rewrite the HTML to reference the attachment rather than the local file. 5) If you run the script on a draft message, whatever text you type into the message body will be used as the plain text alternative to the HTML (for non-HTML compatible clients). I have no idea what the minimum system requirements are: the script makes use of a couple of UNIX commands, including OpenSSL, and I forget when Apple introduced the "do shell script" command to AppleScript (it was in version 1.8 which I think was OS X 10.2). I've also only tested it with Entourage 2004. A probable minimum might be Entourage X and OS X 10.2, but Entourage 2004 and OS X 10.3 are an assured combination. Caveats 1) I suspect (given I cobbled it together in a few hours) that it could easily be rewritten to work more elegantly 2) I'm pretty sure it'll munge up Unicode 3) All my email clients process HTML so the plain text bit is pretty much a matter of faith 4) I've only tested it with HTML files I've written so I've no idea if it will correctly process anyone else's HTML (although it should) So anyone is welcome to have a go at improving it (or to let me know if it doesn't work with their set-up so I can have a go at fixing it myself). The script is free and downloadable from http://homepage.mac.com/robbuckley/images/HTML2004.sit -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
