/*/ com Word 8.7 #6a6b0205.dll; com Office 2.8 #29f388b5.dll; com stdole 2.0 #5213fb64.dll; com VBIDE 5.3 #8f725750.dll; /*/ //.
script.setup(trayIcon: true, sleepExit: true);
//..
var wdApp = new Microsoft.Office.Interop.Word.Application();
wdApp.Visible = true;
var doc = wdApp.Documents.Add();
wdApp.Selection.TypeText("Hello, world!");
wdApp.Selection.TypeParagraph();
wdApp.Selection.TypeText("Goodbye, world!");
wait.s(5);
doc.Saved = true;
wdApp.Quit();
Use the instructions on this page to get the COM interop into the script.
(EDITED to correctly format code for forum)
Best regards,
burque505