Small correction! Take this one!
—— Script ———————————————-
var mySel = app.selection[0];
mySel.insertionPoints[0].contents = “A) “;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
var myGreps = [
{“findWhat”:”t(?=.*$)”,”changeTo”:”$0B) “},
{“findWhat”:”t.+?Kt(?=.*$)”,”changeTo”:”$0C) “},
{“findWhat”:”t.+?t.+?Kt(?=.*$)”,”changeTo”:”$0D) “},
{“findWhat”:”t.+?t.+?t.+?Kt(?=.*$)”,”changeTo”:”$0E) “}
],
G = myGreps.length, g;
for ( g = 0; g < G; g++ ) {
var myGrep = myGreps[g];
app.findGrepPreferences.findWhat = myGrep.findWhat;
app.changeGrepPreferences.changeTo = myGrep.changeTo;
mySel.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
}
// (^/)