Below is a link to an example folder. I have to replace the XXXX with New York City in all 8 EPS files.
Then repeat that for about 400 locations.
WeTransfer
Hi Wayne, here's a script that replaces XXXX with NEW YORK across all open documents. Let me know if you need help changing the script to find something more meaningful.
// findReplace.jsx
// carlos canto
// https://forums.adobe.com/thread/2484457
function main () {
var idoc, search_string, replace_string, tframes, i, tframe, new_string, counter=0;
for (var a=0; a<app.documents.length; a++) {
idoc = app.documents[a];
search_string = /xxxx/gi; // g for global search, remove i to make a case sensitive search
replace_string = "NEW YORK";
tframes = idoc.textFrames;
for (i = 0 ; i < tframes.length; i++) {
tframe = tframes[i];
new_string = tframe.contents.replace(search_string, replace_string);
if (new_string != tframe.contents) {
tframe.contents = new_string;
counter++;
}
}
}
alert(counter + ' changes were made');
}
main();