Scripting

The Directory Opus scripting interface lets you write scripts using any installed ActiveX-scripting language. This allows scripts to be written in common languages which you may already know. JScript (a relative of JavaScript) and VBScript are built into Windows and usually the easiest choices when it comes to compatibility, help and examples from the Directory Opus support forum, and easy sharing with other users. Other languages like Perlscript and Python can be obtained from third-party providers.

 

With the scripting interface you can, for example:

 

The scripting interface is present as a series of objects that export methods you can invoke and properties you can query (and sometimes set).

 

There are three ways to use scripts with Opus.

 

See the Scripting Reference section for a complete guide to the Opus scripting objects, and the Example Scripts section for some examples of the various types of scripts.

 

Any errors/warnings or text output from a script (via the DOpus.Output function) will be displayed in the Other Logs panel (part of the Utility Panel). You can choose the type of information to display in the log using the Preferences / Miscellaneous / Advanced: script_output_level option.

 

You can also use the CLI tool to design and test ad-hoc scripts.