Script Editor provides an object browser in the left pane. The browser displays the object model, listing all available objects, properties, and methods. At the top of the hierarchy is Application, which represents the Interactive Reporting application and contains application-wide settings and options and methods, and properties. See Object Model Map.
Clicking objects or collections displays methods, properties, and internal objects. Double-clicking methods or properties generates scripts in the scripting pane of Script Editor.
The Application object contains a Documents collection and an ActiveDocument collection. Methods and properties of the active document Sample1.bqy, are available in two places in the object model hierarchy:
Scripts that access multiple open documents should use the Documents path to the methods and properties of a document. Scripts that affect only the currently active document can use the ActiveDocument path.