ScriptMenuActions

A collection of script menu actions.

Methods

ScriptMenuActionadd ([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)

ScriptMenuActionanyItem ()
Returns any ScriptMenuAction in the collection.

number count ()
Displays the number of elements in the ScriptMenuAction.

Array of ScriptMenuActioneveryItem ()
Returns every ScriptMenuAction in the collection.

ScriptMenuActionfirstItem ()
Returns the first ScriptMenuAction in the collection.

ScriptMenuActionitem (index:
any)
Returns the ScriptMenuAction with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

ScriptMenuActionitemByID (id:
number)
Returns the ScriptMenuAction with the specified ID.

Parameter Type Description
id number The ID.

ScriptMenuActionitemByName (name:
string)
Returns the ScriptMenuAction with the specified name.

Parameter Type Description
name string The name.

Array of ScriptMenuActionitemByRange (from:
any, to:
any)
Returns the ScriptMenuActions within the specified range.

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

ScriptMenuActionlastItem ()
Returns the last ScriptMenuAction in the collection.

ScriptMenuActionmiddleItem ()
Returns the middle ScriptMenuAction in the collection.

ScriptMenuActionnextItem (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.

ScriptMenuActionpreviousItem (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.

Element of:

Application.scriptMenuActions

Leave a Comment

Previous post:

Next post: