99var FindAndReplace = function (context) {
1010
1111 var presets, userDefaults, document, selection, textToFind, textToReplace, searchScope, matchRegex, matchRegexStart, matchRegexEnd, matchRegexCase, REPLACE_ALL, READY_TO_SEARCH, CANCELLED, NOT_READY, itemsMatched;
12- var version = '1.24 ';
12+ var version = '1.25 ';
1313
1414 // Initialise
1515 initialise(context);
@@ -53,7 +53,7 @@ var FindAndReplace = function (context) {
5353 CANCELLED = false;
5454 NOT_READY = null;
5555
56- // If the selected layer is a text layer, bring the text in automatically
56+ // If the selected object is a text layer, bring the text in automatically
5757 if (selection && selection.count() == 1 && selection[0].class() == MSTextLayer) {
5858 textToFind = selection[0].stringValue().trim();
5959 }
@@ -105,7 +105,7 @@ var FindAndReplace = function (context) {
105105
106106 // Text for modal
107107 userInterface.setMessageText("Find and Replace");
108- userInterface.setInformativeText("Finds and replaces text items in the selected layer (s) or the complete document. " + version );
108+ userInterface.setInformativeText("Finds and replaces text items in the selected object (s) or the complete document. " + version );
109109
110110 // Find text input
111111 userInterface.addTextLabelWithValue("Find");
@@ -117,7 +117,7 @@ var FindAndReplace = function (context) {
117117
118118 // Scope
119119 userInterface.addTextLabelWithValue("Search scope");
120- var options = showScopeOptions ? ['Whole document', 'Current page', 'Selected layer ' + ([selection count] > 1 ? "s" : "")] : ["Whole document","Current page"];
120+ var options = showScopeOptions ? ['Whole document', 'Current page', 'Selected object ' + ([selection count] > 1 ? "s" : "")] : ["Whole document","Current page"];
121121 userInterface.addAccessoryView(createRadioButtons(options, (showScopeOptions ? searchScope : 1)));
122122
123123 // Case-sensitivity
@@ -291,7 +291,7 @@ var FindAndReplace = function (context) {
291291 break;
292292
293293 case 2:
294- // Loop through all the selected layers
294+ // Loop through all the Selected objects
295295 for (var i = 0; i < [selection count]; i++) {
296296 searchInLayer(selection[i], true);
297297 }
0 commit comments