Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
var styletofind = app.activeDocument.characterStyles.item("File name");But even this might not be enough if the character styles in question are in groups.
if (styletofind != null) {
var styletochange = app.activeDocument.characterStyles.item("Document No");
app.findTextPreferences.appliedCharacterStyle = styletofind;
app.changeTextPreferences.appliedCharacterStyle = styletochange;
oneDoc.changeText();
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now