Hello all, particularly Windows users,
Here is a new toy--a late Christmas gift--for you to play with. Scriptom
is targeted exclusively at the users working under Windows.
Scriptom is a new module that allows you to use Groovy to script COM or
ActiveX components, while still leveraging all the java libraries
available!
To learn more about Scriptom, how to get it, to install it, and to play
with a few examples, I've written some extensive documentation on
Confluence:
http://groovy.codehaus.org/COM+Scripting
Just to give you a little taste of what you can do, here is a small
example on how to script Internet Explorer from Groovy:
import org.codehaus.groovy.scriptom.ActiveXProxy
explorer = new ActiveXProxy("InternetExplorer.Application")
explorer.Visible = true
explorer.AddressBar = true
explorer.Navigate("http://glaforge.free.fr/weblog")
You can even use the ScriptControl component to mix VBScript code and
Groovy! A somewhat alien alliance, but Scriptom can be pretty useful ;-)
Enjoy!