- Сообщения
- 1 960
- Реакции
- 3 589
Однозначно.
Только пробуйте на копии.
PHP:
var mySel = app.activeDocument.selection[0];
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "Number";
var myF = mySel.findGrep(true);
for (i=0; i<myF.length; i++){
myF[i].contents += String(i+1);
}