ScriptPreference

Scripting environment preferences.

Methods:

getElements, toSource, toSpecifier

Objects:

Boolean, File, Object, String, UserInteractionLevels,

Hierarchy:

Superclass: Preference

Class: ScriptPreference

Property Listing

Property

Type

Access

Description

enableRedraw

Boolean

read/write

If true, enables redraw during script execution.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Application

readonly

The parent of the ScriptPreference (a Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

scriptsFolder

File

readonly

The path to the Scripts folder for the application.

scriptsList

Array of 2 Strings

Array of Files File

readonly

A list of the scripts in the Scripts folder. Can return: Array of Array of 2 Strings or Files.

userInteractionLevel

UserInteractionLevels

UserInteractionLevels.INTERACT_WITH_ALERTS

UserInteractionLevels.INTERACT_WITH_ALL

UserInteractionLevels.NEVER_INTERACT

read/write

Controls the display of dialogs and alerts during script processing.

version

String

Real

read/write

The version of the scripting environment. Can also accept: Real.

Method Listing

ScriptPreference getElements ()

Resolves the object specifier, creating an array of object references.

String toSource ()

Generates a string which, if executed, will return the ScriptPreference.

String toSpecifier ()

Retrieves the object specifier.

Object of

Application.scriptPreferences

Return

ScriptPreference.getElements()