2011-09-16から1日間の記事一覧

[InDesign JavaScript] フレームは残しつつ中の画像やテキストを削除

//画像の削除の場合 var Obj = app.activeDocument.selection[0].graphics[0]; Obj.remove();//テキストストーリーの削除の場合 var myStory = app.activeDocument.selection[0].parentStory; myStory.remove();

[InDesign JavaScript] フレームの中の画像を相対値で移動する

var myDoc = app.activeDocument; //単位をミリに変更 myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS; myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;//選択したフレームの画像を選…