MACSCRPT Archives

February 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 18 Feb 2006 12:10:00 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
 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/

ATOM RSS1 RSS2