I have been working with Ruby and PHP for a bit of automation, but I thought I would give Groovy a shot. It turns out Groovy is just as easy.
First follow the steps at CodeHaus to install Scriptom. Then create a groovy file and paste this in.
package com.scottpreston.groovy.com;
import org.codehaus.groovy.scriptom.*;
def write_word() {
def word = new ActiveXObject(”Word.Application”);
word.Visible [...]

