///////////////////////////////////////////////////////////////// //Select Text by size v.1,01 -- CS,CS5 //>=-------------------------------------- // Script prompts user for a text size (in pixels), // and selects all text items in document at chosen pixel size. // Note: script also unlocks and unhides all instances of chosen text size. // change variables at top of script if your use case requires ignoring certain cases. // Updated to allow selection of a size range such as 5,9 for selecting all text between 5 points and 9. // Selection would include text at both 5 and 9 point sizes. //>=-------------------------------------- // JS code (c) copyright: John Wundes ( john@wundes.com ) www.wundes.com //copyright full text here: http://www.wundes.com/js4ai/copyright.txt ////////////////////////////////////////////////////////////////// var doc = activeDocument; var inputSize = prompt("What size text do you want to select? To select an (inclusive) range, enter comma separated values such as 11,13.","12"); selectText(inputSize); function selectText(inputSize){ if(inputSize == undefined){return;} //Edit these variables to change default behavior... var unlockText = true; var unhideText = true; var unlockLayers = true; var unhideLayers = true; var isRange = false; if (inputSize.indexOf(',') != -1){ isRange = true; inputSize = inputSize.split(','); } for(var e = 0,max=doc.textFrames.length;e