
CHAPTER 4: User-Interface Tools ScriptUI object reference 105
ScriptUI object reference
ScriptUI is a component that works with the ExtendScript JavaScript interpreter to provide JavaScript
programs with the ability to create and interact with user interface elements. It provides an object model
for windows and user-interface control elements within an application.
This section provides the details of the ScriptUI classes and objects with their properties, methods, and
creation parameters.
X ScriptUI class
X Common properties
X Window class
X Window object
X Control objects
X UIEvent base class
X Graphic customization objects
X LayoutManager object
ScriptUI class
The globally available ScriptUI class provides central information about the ScriptUI module. This object
is not instantiable.
ScriptUI class properties
Alignment
Object Collects the enumerated values that can be used in the alignment and
alignChildren
properties of controls and containers, and in the alignment
property used to set a control’s titleLayout
property. Read only.
Use these constants to set the alignment. For example:
myGroup.alignment = [ScriptUI.Alignment.LEFT,
ScriptUI.Alignment.TOP]
When you query the alignment property, it returns index values that
correspond to the constants as shown. Constant values are:
ScriptUI.Alignment.TOP (1)
ScriptUI.Alignment.BOTTOM (2)
ScriptUI.Alignment.LEFT (3)
ScriptUI.Alignment.RIGHT (4)
ScriptUI.Alignment.FILL (5)
ScriptUI.Alignment.CENTER (6)
applicationFonts
Object Collects the enumerated values that specify the default application fonts.
The available fonts vary according to the application and system
configuration.
Comentários a estes Manuais