Importing Word documents

Bob Sneidar bobs at twft.com
Thu Jun 9 13:39:31 EDT 2011


He is saying that it will produce a file on the disk. Empty is probably what the shell returns if all goes well. The "it" variable would probably contain an error if things did not go well. 

Bob


On Jun 9, 2011, at 10:29 AM, James Hurley wrote:

>> 
>> Message: 10
>> Date: Thu, 9 Jun 2011 16:20:42 +0200
>> From: Mark Schonewille <m.schonewille at economy-x-talk.com>
>> To: How to use LiveCode <use-livecode at lists.runrev.com>
>> Subject: Re: Importing Word documents
>> Message-ID: <DCF3260A-5B5C-40B4-BECC-4785230E63E6 at economy-x-talk.com>
>> 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?
> 
> Jim
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list