Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS] Find/Change on all text frames on a single page?

$
0
0

Hi,

 

Is it possible to perform a .changeGrep() on all text frames on a single page only?

 

This code gives me "myPageFrames.changeGrep() is not a Function"

 

var  myPageFrames = myNewPage.textFrames;

     app.findGrepPreferences = app.changeGrepPreferences = null;

     app.findGrepPreferences.findWhat = ".+";

     app.findGrepPreferences.appliedCharacterStyle = myCharStyle;

     app.changeGrepPreferences.changeTo = "myChangetoText";

myFinds = myPageFrames.changeGrep();

           

 

Thanks.


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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