Hi James,

Am 09.06.2011 um 19:29 schrieb James Hurley:

>> Message: 10
>> Date: Thu, 9 Jun 2011 16:20:42 +0200
>> From: Mark Schonewille <[email protected]>
>> To: How to use LiveCode <[email protected]>
>> Subject: Re: Importing Word documents
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=us-ascii
>> Jim,
>> 
>> get shell("textutil -convert rtf" && quote & "path/to/file.docx" & quote)
>> This will produce a file path/to/file.rtf, which you can read with LiveCode.
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
> 
> Mark,
> 
> This doesn't work for me. It appears to recognize the file name but "it" 
> comes up empty.
> Does this work on Word files or just Text files?

IT will only contain the RESULT of the shell command!

It will convert the Word file to a RTF file in the same folder:
>> This will produce a file path/to/file.rtf, which you can read with LiveCode.

:-)

> Jim

Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to