Thanks, Jim. That looks promising.

Jeremy


> On 8 Oct 2018, at 12:37, Jim Hays via 4D_Tech <[email protected]> wrote:
> 
> wscript.exe is one way to go.
> 
> To learn how to write the particular script for MS Word on Windows, let it
> record a macro of what you want to do.
> You can pull the macro out into a text file and run it with wscript (with a
> few more commands to get Word started and point at the document).
> To record a Macro, you can type in "record a macro" in the "Tell me what
> you want to do" box.
> Or, go to the Views tab and find Macros on the right.
> 
> Google is your friend - running VBA macros.
> 
> HTH,
> 
> Jim
> 
> 
> 
> 
> 
> On Sun, Oct 7, 2018 at 6:02 PM Jeremy Roussak via 4D_Tech <
> [email protected]> wrote:
> 
>> I have an AppleScript which is called from 4D with four numeric
>> parameters. Provided MS Word is running and the cursor is in a table, it
>> fills columns 2 to 5 of the table with its parameters and tabs out of the
>> last column, probably creating a new row in the table.
>> 
>> I’m now called upon to make the 4D application, and hence the script, work
>> under Windows. Sadly, and a bit problematically I haven’t a clue about
>> scripting Windows. I imagine it can be done in VB. Any help would be most
>> gratefully received!
>> 
>> The AppleScript is below.
>> 
>> Thanks
>> 
>> Jeremy
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to