John Delacour wrote:
> >Text starts as Word document
>>Copy as styled text, paste into Tex-Edit
>>Use Tex-Edit replace and style run functions to convert to HTML
>>(used to use convertToHTML OSAX in OS 9)
>>Read into Applescript variable
>
>Are you aware that in TextEdit you can open a .doc file and save it
>as html thanks to Tiger's built-in Cocoa HTML Writer?
Don't even need to use TextEdit; see man textutil
As for some files being written as UTF16, assuming the OP is using the Standard Additions 'write' command on OS 10.4+, they should check the release notes for AS 1.10 which explains changes in that command and the language's string/Unicode text handling <http://www.apple.com/applescript/releasenotes/>.
has
--
http://freespace.virgin.net/hamish.sanderson/