ScriptMenuActions

A collection of script menu actions.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

ScriptMenuAction [] (index:Number)

Returns the ScriptMenuAction with the specified index.

Parameter

Type

Description

index

Number

The index.

ScriptMenuAction add (title:String, withProperties:Object)

Creates a new action.

Parameter

Type

Description

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. (Optional)

withProperties

Object

Initial values for properties of the new ScriptMenuAction (Optional)

ScriptMenuAction anyItem ()

Returns any ScriptMenuAction in the collection.

Number count ()

Displays the number of elements in the ScriptMenuAction.

ScriptMenuAction everyItem ()

Returns every ScriptMenuAction in the collection.

ScriptMenuAction firstItem ()

Returns the first ScriptMenuAction in the collection.

ScriptMenuAction item (index:Varies LongInteger String)

Returns the ScriptMenuAction with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

ScriptMenuAction itemByID (id:Number)

Returns the ScriptMenuAction with the specified ID.

Parameter

Type

Description

id

Number

The ID.

ScriptMenuAction itemByName (name:String)

Returns the ScriptMenuAction with the specified name.

Parameter

Type

Description

name

String

The name.

ScriptMenuAction itemByRange (from:Varies LongInteger ScriptMenuAction String, to:Varies LongInteger ScriptMenuAction String)

Returns the ScriptMenuActions within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last ScriptMenuAction in the collection.

ScriptMenuAction middleItem ()

Returns the middle ScriptMenuAction in the collection.

ScriptMenuAction nextItem (obj:ScriptMenuAction)

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

Parameter

Type

Description

obj

ScriptMenuAction

The ScriptMenuAction whose index comes before the desired ScriptMenuAction.

ScriptMenuAction previousItem (obj:ScriptMenuAction)

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

Parameter

Type

Description

obj

ScriptMenuAction

The index of the ScriptMenuAction that follows the desired ScriptMenuAction.

String toSource ()

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

Object of

Application.scriptMenuActions