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
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:
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
Is
Message: 10
Date: Thu, 9 Jun 2011 16:20:42 +0200
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Subject: Re: Importing Word documents
Message-ID: dcf3260a-5b5c-40b4-becc-4785230e6...@economy-x-talk.com
Content-Type: text/plain
:42 +0200
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Subject: Re: Importing Word documents
Message-ID: dcf3260a-5b5c-40b4-becc-4785230e6...@economy-x-talk.com
Content-Type: text/plain; charset=us-ascii
Jim,
get shell
+0200
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Subject: Re: Importing Word documents
Message-ID: dcf3260a-5b5c-40b4-becc-4785230e6...@economy-x-talk.com
Content-Type: text/plain; charset=us-ascii
Jim,
get shell(textutil
Message: 14
Date: Thu, 9 Jun 2011 19:37:25 +0200
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Subject: Re: Importing Word documents
Message-ID: dd648b1c-a159-4620-b507-70919dfc9...@economy-x-talk.com
Content-Type: text/plain
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: