All Projects → groovy → Scriptom

groovy / Scriptom

Licence: other
Scriptom project, offering a access to Windows / COM / Ole components from Groovy

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects
XSLT
1337 projects
C#
18002 projects
HTML
75241 projects
Visual Basic .NET
514 projects

What is Scriptom

Note: Scriptom is not actively maintained.

Scriptom provides a simple yet powerful COM library for Groovy. It is implemented as a thin layer around [JACOB (Java COM Bridge)](https://sourceforge.net/projects/jacob-project/). JACOB is a mature open-source library for Java that supports communicating with COM libraries and automation servers on Microsoft Windows.

Scriptom attempts to mirror all the functionality of JACOB, but in a "groovy" way. Here is a quick example that uses Scripting.FileSystemObject to list the paths to all active rooted drives on your system (italics show COM methods and properties):

  new ActiveXObject('Scripting.FileSystemObject').Drives.findAll{it.IsReady}.each{println it.Path}       `

Visual Basic was never this easy!

Supported Variant Types and Translation Notes

Variant-Type Supported? Java VB6/VBA Comments

Empty

Yes

null

Variant.Empty

Null

Yes

VariantNull

Variant.Null

Don’t be confused. Variant.Null is not the same as null. This is by design.

Short

Yes

Short

Integer

An Integer in VB6 represents a 16-bit signed value.

Int

Yes

Integer

Long

A Long in VB6 represents a 32-bit signed value.

Long

Yes

Long/BigInteger

A 64-bit signed value. Supported by .NET. BigInteger supports arbitrary-precision integers, so there may be errors associated with converting a BigInteger to a 64-bit integer.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].