Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: find highlighted text

$
0
0

Onnozel wrote

 

The background of the text is YELLOW.

 

so I don't think he knows what the names of these conditions are. This will remove the text in any condition with 'background is YELLOW':

 

app.findTextPreferences = app.changeTextPreferences = null;for (i=0; i<app.activeDocument.conditions.length; i++){if (app.activeDocument.conditions[i].indicatorMethod == ConditionIndicatorMethod.USE_HIGHLIGHT &&  app.activeDocument.conditions[i].indicatorColor == UIColors.YELLOW){  app.findTextPreferences.appliedConditions = [app.activeDocument.conditions[i]];  app.activeDocument.changeText();}}

Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>