ScriptMenuActions

ScriptMenuAction(A script menu action.)のコレクション

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] length 数値オブジェクト数

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] add([title], [withProperties]) ScriptMenuAction新しいオブジェクトを作成し、それを返す
[title] 文字列値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プロパティを設定
[18][19][20][21] anyItem() ScriptMenuActionどれかのオブジェクトを返す
[18][19][20][21] count() 数値要素数を返す
[18][19][20][21] everyItem() ScriptMenuAction (Array)全てのオブジェクトを返す
[18][19][20][21] firstItem() ScriptMenuAction最初のオブジェクトを返す
[18][19][20][21] item(index) ScriptMenuActionインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[18][19][20][21] itemByID(id) ScriptMenuActionIDで指定したオブジェクトを返す
id 数値
[18][19][20][21] itemByName(name) ScriptMenuAction名前で指定したオブジェクトを返す
name 文字列値
[18][19][20][21] itemByRange(from, to) ScriptMenuAction (Array)範囲で指定したオブジェクトを返す
from ScriptMenuAction, 数値, 文字列値範囲の開始
to ScriptMenuAction, 数値, 文字列値範囲の終了
[18][19][20][21] lastItem() ScriptMenuAction最後のオブジェクトを返す
[18][19][20][21] middleItem() ScriptMenuAction真ん中のオブジェクトを返す
[18][19][20][21] nextItem(obj) ScriptMenuAction一つ後のオブジェクトを返す
obj ScriptMenuAction位置の基準になるオブジェクト
[18][19][20][21] previousItem(obj) ScriptMenuAction一つ前のオブジェクトを返す
obj ScriptMenuAction位置の基準になるオブジェクト
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す

ScriptMenuAction

A script menu action.

プロパティ(parentとその逆)

Ver.プロパティR/O
[18][19][20][21] parent Application
[18][19][20][21] eventListeners EventListeners
[18][19][20][21] events Events

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] area 文字列値The menu action area.
[18][19][20][21] checked 真偽値チェックされているか
[18][19][20][21] enabled 真偽値If true, the ScriptMenuAction is enabled.
[18][19][20][21] id 数値オブジェクトのID
[18][19][20][21] index 数値インデックス
[18][19][20][21] isValid 真偽値オブジェクトが有効かどうか
[18][19][20][21] label 文字列値スクリプトラベル
[18][19][20][21] name 文字列値オブジェクトの名前
[18][19][20][21] properties Object
[18][19][20][21] title 文字列値表示する名称。Winなら&でショートカットが使える

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] extractLabel(key) 文字列値キーに関連づけられた値を取得
key 文字列値キー
[18][19][20][21] getElements() Array( ScriptMenuAction )オブジェクト参照を返す
[18][19][20][21] insertLabel(key, value) なしキーに関連づけられた値を設定
key 文字列値キー
value 文字列値
[18][19][20][21] invoke() なし実行
[18][19][20][21] remove() なし削除
[18][19][20][21] removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す
[18][19][20][21] toSpecifier() 文字列値Retrieves the object specifier.

クラス

プロパティ名値(文字列)説明
AFTER_INVOKEafterInvokeDispatched after the ScriptMenuAction is invoked. This event does not bubble. This event is not cancelable.
BEFORE_DISPLAYbeforeDisplayDispatched before the ScriptMenuAction is displayed. This event does not bubble. This event is not cancelable.
BEFORE_INVOKEbeforeInvokeDispatched before the ScriptMenuAction is invoked. This event does not bubble. This event is cancelable.
ON_INVOKEonInvokeDispatched when the ScriptMenuAction is invoked. This event does not bubble. This event is not cancelable.