Scripting

The Directory Opus scripting interface lets you write scripts using any installed ActiveX-scripting language. The advantage of this is that you can leverage skills you may already have in well-known languages, rather than having to learn a potentially arcane and confusing proprietary language as in some other products. For example, VBScript and JScript are built into Windows, and many people are already familiar with them from the web. Other common 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.