InDesign2026
API 21.5.1.73
Collection of ScriptMenuAction

ScriptMenuActions

A collection of script menu actions.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

ScriptMenuAction

Returns the ScriptMenuAction with the specified index.

index Number The index.
ScriptMenuAction

Creates a new action.

title? String The name of the ScriptMenuAction for display in the user interface. The title includes any ampersand characters (&), which are used to tell the Windows OS to underline the following character in the name for use with the Alt key to navigate to a menu item. Double ampersands are used to display an actual ampersand character in the name. The Mac OS ignores and removes the extra ampersand characters.
withProperties? Object Initial values for properties of the new ScriptMenuAction
Number

Displays the number of elements in the ScriptMenuAction.

ScriptMenuAction[]

Returns every ScriptMenuAction in the collection.

ScriptMenuAction

Returns the first ScriptMenuAction in the collection.

ScriptMenuAction

Returns the ScriptMenuAction with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
ScriptMenuAction

Returns the ScriptMenuAction with the specified name.

name String The name.
ScriptMenuAction[]

Returns the ScriptMenuActions within the specified range.

from LongInteger | ScriptMenuAction | String The ScriptMenuAction, index, or name at the beginning of the range. Can accept: ScriptMenuAction, Long Integer or String.
to LongInteger | ScriptMenuAction | String The ScriptMenuAction, index, or name at the end of the range. Can accept: ScriptMenuAction, Long Integer or String.
ScriptMenuAction

Returns the last ScriptMenuAction in the collection.

ScriptMenuAction

Returns the middle ScriptMenuAction in the collection.

ScriptMenuAction

Returns the ScriptMenuAction whose index follows the specified ScriptMenuAction in the collection.

obj ScriptMenuAction The ScriptMenuAction whose index comes before the desired ScriptMenuAction.
ScriptMenuAction

Returns the ScriptMenuAction with the index previous to the specified index.

obj ScriptMenuAction The index of the ScriptMenuAction that follows the desired ScriptMenuAction.
String

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

Object of 1

Properties elsewhere that hold a ScriptMenuActions.