ScriptMenuAction(A script menu action.)のコレクション
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
length | ○ | 数値 | オブジェクト数 |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
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 | プロパティを設定 | |||
anyItem() | ScriptMenuAction | どれかのオブジェクトを返す | |||
count() | 数値 | 要素数を返す | |||
everyItem() | Array( ScriptMenuAction ) | 全てのオブジェクトを返す | |||
firstItem() | ScriptMenuAction | 最初のオブジェクトを返す | |||
item(index) | ScriptMenuAction | インデックスまたは名前で指定したオブジェクトを返す | |||
index | 数値, 文字列値 | インデックスまたは名前 | |||
itemByID(id) | ScriptMenuAction | IDで指定したオブジェクトを返す | |||
id | 数値 | ||||
itemByName(name) | ScriptMenuAction | 名前で指定したオブジェクトを返す | |||
name | 文字列値 | ||||
itemByRange(from, to) | Array( ScriptMenuAction ) | 範囲で指定したオブジェクトを返す | |||
from | ScriptMenuAction, 数値, 文字列値 | 範囲の開始 | |||
to | ScriptMenuAction, 数値, 文字列値 | 範囲の終了 | |||
lastItem() | ScriptMenuAction | 最後のオブジェクトを返す | |||
middleItem() | ScriptMenuAction | 真ん中のオブジェクトを返す | |||
nextItem(obj) | ScriptMenuAction | 一つ後のオブジェクトを返す | |||
obj | ScriptMenuAction | 位置の基準になるオブジェクト | |||
previousItem(obj) | ScriptMenuAction | 一つ前のオブジェクトを返す | |||
obj | ScriptMenuAction | 位置の基準になるオブジェクト | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す |
A script menu action.
Ver. | プロパティ | R/O | 値 |
---|---|---|---|
parent | ○ | Application | |
eventListeners | ○ | EventListeners | |
events | ○ | Events |
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
area | 文字列値 | The menu action area. | ||
checked | 真偽値 | チェックされているか | ||
enabled | 真偽値 | If true, the ScriptMenuAction is enabled. | ||
id | ○ | 数値 | オブジェクトのID | |
index | ○ | 数値 | インデックス | |
isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
label | 文字列値 | スクリプトラベル | ||
name | 文字列値 | オブジェクトの名前 | ||
properties | Object | |||
title | 文字列値 | 表示する名称。Winなら&でショートカットが使える |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
extractLabel(key) | 文字列値 | キーに関連づけられた値を取得 | |||
key | 文字列値 | キー | |||
getElements() | Array( ScriptMenuAction ) | オブジェクト参照を返す | |||
insertLabel(key, value) | なし | キーに関連づけられた値を設定 | |||
key | 文字列値 | キー | |||
value | 文字列値 | 値 | |||
invoke() | なし | 実行 | |||
remove() | なし | 削除 | |||
removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
toSpecifier() | 文字列値 | Retrieves the object specifier. |
プロパティ名 | 値(文字列) | 説明 |
---|---|---|
AFTER_INVOKE | afterInvoke | Dispatched after the ScriptMenuAction is invoked. This event does not bubble. This event is not cancelable. |
BEFORE_DISPLAY | beforeDisplay | Dispatched before the ScriptMenuAction is displayed. This event does not bubble. This event is not cancelable. |
BEFORE_INVOKE | beforeInvoke | Dispatched before the ScriptMenuAction is invoked. This event does not bubble. This event is cancelable. |
ON_INVOKE | onInvoke | Dispatched when the ScriptMenuAction is invoked. This event does not bubble. This event is not cancelable. |