Assets

Asset(ライブラリの各部品)のコレクション

プロパティ

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

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] anyItem() Assetどれかのオブジェクトを返す
[18][19][20][21] count() 数値要素数を返す
[18][19][20][21] everyItem() Asset (Array)全てのオブジェクトを返す
[18][19][20][21] firstItem() Asset最初のオブジェクトを返す
[18][19][20][21] item(index) Assetインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[18][19][20][21] itemByID(id) AssetIDで指定したオブジェクトを返す
id 数値
[18][19][20][21] itemByName(name) Asset名前で指定したオブジェクトを返す
name 文字列値
[18][19][20][21] itemByRange(from, to) Asset (Array)範囲で指定したオブジェクトを返す
from Asset, 数値, 文字列値範囲の開始
to Asset, 数値, 文字列値範囲の終了
[18][19][20][21] lastItem() Asset最後のオブジェクトを返す
[18][19][20][21] middleItem() Asset真ん中のオブジェクトを返す
[18][19][20][21] nextItem(obj) Asset一つ後のオブジェクトを返す
obj Asset位置の基準になるオブジェクト
[18][19][20][21] previousItem(obj) Asset一つ前のオブジェクトを返す
obj Asset位置の基準になるオブジェクト
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す

Asset

ライブラリの各部品

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

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

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] assetType AssetType
AssetType
Ver.プロパティ値/管理用文字説明
[18][19][20][21]EPS_TYPE1952400720
t_EP
EPS
[18][19][20][21]GEOMETRY_TYPE1952409445
t_ge
形状
[18][19][20][21]IMAGE_TYPE1952409965
t_im
画像
[18][19][20][21]INDESIGN_FILE_TYPE1952409956
t_id
InDesign ファイル
[18][19][20][21]PAGE_TYPE1952411745
t_pa
ページ
[18][19][20][21]PDF_TYPE1952403524
t_PD
PDF
[18][19][20][21]STRUCTURE_TYPE1952412532
t_st
構造
[18][19][20][21]TEXT_TYPE1952412773
t_te
テキスト
アセットの形式
[18][19][20][21] date 日時値日付
[18][19][20][21] description 文字列値アイテム情報の詳細
[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

メソッド

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( Asset )オブジェクト参照を返す
[18][19][20][21] insertLabel(key, value) なしキーに関連づけられた値を設定
key 文字列値キー
value 文字列値
[18][19][20][21] placeAsset(on) Array( varies=any )アセットを配置。配置したオブジェクトを返す
on Document, Text配置するドキュメントまたはテキスト
[18][19][20][21] remove() なし削除
[18][19][20][21] removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] select([existingSelection]) なし選択状態にする
[existingSelection] SelectionOptions
SelectionOptions
Ver.プロパティ値/管理用文字説明
[18][19][20][21]ADD_TO1633969202
add2
追加選択する
[18][19][20][21]REMOVE_FROM1919249734
remF
選択から削除する
[18][19][20][21]REPLACE_WITH1919250519
repW
置き換える
[18][19][20][21]SET_KEY1936028779
setk
整列のキーオブジェクトにする
既に選択されているものがあった場合 (既定値=SelectionOptions.REPLACE_WITH)
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す
[18][19][20][21] toSpecifier() 文字列値Retrieves the object specifier.