Answered
Find and rename all textFrames having the same name
Hi,
At activedocument there is multiple textFrames named "Text"
I want to rename each one to Text0, Text1, Text2
This is not wotking
#target illustrator
var SearchName = "Text";
var count = 0;
var textObjects = app.activeDocument.textFrames
for (var i = 0; i < textObjects.length; i++) {
if (textObjects[i].getByName(SearchName) {
textObjects[i].name = SearchName + count ;
count ++;
}
}
