Re: Importing Word documents

2011-06-09 Thread J. Landman Gay
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:

Re: Importing Word documents

2011-06-09 Thread James Hurley
> > 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

Re: Importing Word documents

2011-06-09 Thread Bob Sneidar
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

Re: Importing Word documents

2011-06-09 Thread Mark Schonewille
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

Re: Importing Word documents

2011-06-09 Thread Klaus on-rev
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;

Re: Importing Word documents

2011-06-09 Thread 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; charset=us-ascii > > Jim, > > get shell("textutil -convert rt

Re: Importing Word documents

2011-06-09 Thread Paul Dupuis
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

Re: Importing Word documents

2011-06-09 Thread Mark Schonewille
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

Importing Word documents

2011-06-09 Thread James Hurley
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