Math Kay wrote:
This script is showing error while running.
Please, never EVER EVER say that a script shows "an error" without telling us what the error is! It is so simple, just type in what the error dialog says ...
That said, the GREP findWhat string seems very odd to me. Where did you get this script from? Did you copy it correctly?
Totally right: the grep code seems to be incorrect:
Not tested in my end, please check <<Figure 1.1>>
app.findGrepPreferences.findWhat = "<<.+?>>"
var myFound = app.activeDocument.findGrep();
Try it then go for next level of coding..