テキスト検索置換
app.changeTextPreferences = NothingEnum.nothing; app.findTextPreferences = NothingEnum.nothing; app.findTextPreferences.findWhat = "これを"; app.changeTextPreferences.changeTo = "アレニ"; app.changeTextPreferences.appliedFont = app.fonts.item("小塚ゴシック Pro B"); app.changeTextPreferences.pointSize = "7pt"; app.changeTextPreferences.leading = "10pt"; app.changeText(); //ドキュメント対象
[VBScript]
Const idNothing = 1851876449 app.FindTextPreferences = idNothing app.ChangeTextPreferences = idNothing app.findTextPreferences.findWhat = "これを" app.changeTextPreferences.changeTo = "アレニ" app.changeTextPreferences.appliedFont = app.fonts.item("小塚ゴシック Pro B") app.changeTextPreferences.pointSize = "7pt" app.changeTextPreferences.leading = "10pt" app.changeText() 'ドキュメント対象
置換対象
app.changeText(); //ドキュメント対象 frame.parentStory.changeText(); //選択中のフレーム対象
※参考(一部)
app.changeTextPreferences.horizontalScale = 70; //長体
app.changeTextPreferences.verticalScale = 90; //平体
app.findChangeTextOptions.kanaSensitive = false; //カナを区別
app.findChangeTextOptions.widthSensitive = true; //半角全角を区別
app.changeTextPreferences.leftIndent = "0pt"; //インデント