On 6/9/11 8:45 PM, James Hurley wrote:
But when I get url "file:theFilePath" of that RTF file in order to
import it into a LC field, I get a lot of formatting code in the
field. Opening that file in TextEdit or Word give a much better
result.
Tell the field how to display the file content:
>
> Message: 14
> Date: Thu, 9 Jun 2011 19:37:25 +0200
> From: Mark Schonewille
> To: How to use LiveCode
> Subject: Re: Importing Word documents
> Message-ID:
> Content-Type: text/plain; charset=us-ascii
>
> James,
>
> If "it" is empty, in othe
gt; Date: Thu, 9 Jun 2011 16:20:42 +0200
>> From: Mark Schonewille
>> To: How to use LiveCode
>> Subject: Re: Importing Word documents
>> Message-ID:
>> Content-Type: text/plain; charset=us-ascii
>>
>> Jim,
>>
>> get shell("textutil -co
age: 10
>> Date: Thu, 9 Jun 2011 16:20:42 +0200
>> From: Mark Schonewille
>> To: How to use LiveCode
>> Subject: Re: Importing Word documents
>> Message-ID:
>> Content-Type: text/plain; charset=us-ascii
>>
>> Jim,
>>
>> get shell(&qu
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
>> To: How to use LiveCode
>> Subject: Re: Importing Word documents
>> Message-ID:
>> Content-Type: text/plain;
>
> Message: 10
> Date: Thu, 9 Jun 2011 16:20:42 +0200
> From: Mark Schonewille
> To: How to use LiveCode
> Subject: Re: Importing Word documents
> Message-ID:
> Content-Type: text/plain; charset=us-ascii
>
> Jim,
>
> get shell("textutil -convert rt
Use WordLib - available in the RunREv Store under Add-ons. It works great!
On 6/9/2011 10:03 AM, James Hurley wrote:
If one copies a Word document from within Word and pastes that copy into a LC
field, much of the formatting is retained.
Not so if one just uses: get url "file:"& tFileName
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
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://t
If one copies a Word document from within Word and pastes that copy into a LC
field, much of the formatting is retained.
Not so if one just uses: get url "file:" & tFileName
Is there a way, within LC, to obtain the copy and paste formatting, perhaps
with an imbedded AppleScript?
Thanks,
Jim