Answered
{Extendscript} How to find if text is selected
Hi Friends,
Trying to find the way to know if text is selected in the active document. I tried the code below but it doesn't seem to work correctly. Any help is appreciated!
oTextRange = oDoc.TextSelection;
if(oTextRange.beg.offset == 0 && oTextRange.end.offset == 0){
alert("No text selected!"); // abort if no text selected
} else {
scanSelection(oTextRange);
} // end-if
