2016-04-13 1 views

Antwort

0

var props = { 
 
    appliedParagraphStyle : "h2", 
 
    findWhat = ".+"; 
 
} 
 
app.findGrepPreferences = null; 
 
app.findGrepPreferences.properties = props; 
 

 
var found = app.activeDocument.findGrep(); 
 
var n = found.length; 
 
while (n--) { 
 
    
 
    //do something with instance n of found 
 
    //which is a text object 
 
    found[n].contents="Found you !"; 
 
}

Verwandte Themen