ScriptMenuActions
A collection of script menu actions.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
ScriptMenuAction add( String title, Object withProperties )
Creates a new action.
Parameters
Type Name Description 
Number count()
Displays the number of elements in the ScriptMenuAction.
ScriptMenuAction item( Mixed index )
Returns the ScriptMenuAction with the specified index or name.
Parameters
Type Name Description 
ScriptMenuAction itemByName( String name )
Returns the ScriptMenuAction with the specified name.
Parameters
Type Name Description 
ScriptMenuAction itemByID( Number id )
Returns the ScriptMenuAction with the specified ID.
Parameters
Type Name Description 
ScriptMenuAction itemByRange( Mixed from, Mixed to )
Returns the ScriptMenuActions within the specified range.
Parameters
Type Name Description 
ScriptMenuAction firstItem()
Returns the first ScriptMenuAction in the collection.
ScriptMenuAction lastItem()
Returns the last ScriptMenuAction in the collection.
ScriptMenuAction middleItem()
Returns the middle ScriptMenuAction in the collection.
ScriptMenuAction previousItem( ScriptMenuAction obj )
Returns the ScriptMenuAction with the index previous to the specified index.
Parameters
Type Name Description 
ScriptMenuAction nextItem( ScriptMenuAction obj )
Returns the ScriptMenuAction whose index follows the specified ScriptMenuAction in the collection.
Parameters
Type Name Description 
ScriptMenuAction anyItem()
Returns any ScriptMenuAction in the collection.
ScriptMenuAction everyItem()
Returns every ScriptMenuAction in the collection.
String toSource()
Generates a string which, if executed, will return the ScriptMenuAction.
ScriptMenuAction []( Number index )
Returns the ScriptMenuAction with the specified index.
Parameters
Type Name Description