app.findTextPreferences = app.findTextPreferences = null; app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.itemByName("[Einf. Abs.]"); var res = app.activeDocument.findText(); app.findTextPreferences = app.findTextPreferences = null; for (var i = 0; i < res.length; i++) { var curRes = res[i]; curRes.select(); app.menuActions.itemByID(8500).invoke(); }