Using JScript to Access the AOM
JScript Interface Overview
Arbortext Editor and the Arbortext Publishing Engine include a JScript binding to the AOM. Using this binding, software developers can use the JScript programming language to write applications for Arbortext Editor and the Arbortext Publishing Engine.
Arbortext uses Microsoft Windows Script (or ActiveScript) as the JScript interpreter. This script engine is represented primarily by the system files
jscript.dll and
scrrun.dll which are typically installed by Microsoft Windows, Internet Explorer, and the Windows Script Host upgrades available from the Microsoft Developers Network (MSDN).
Arbortext recommends Windows Script Version 5.6, which is free from the Microsoft web site at:
msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/letintro.asp.
|
JScript versions prior to 5.0 shipped with Windows 98 have not been tested.
|
The AOM interface and the DOM interface for JScript are implemented using the PTC Arbortext COM interface. Access to external COM servers is implemented through standard COM interfaces used by the Microsoft script engines.
|
By default, all JScript code is executed in a single global context, in a namespace called EpicJS. A JScript instance can create nested JScript instances which use unique namespaces. See the description of the createScriptContext method for the AOM Application object in createScriptContext method.
|