But if the document is xml document then it includes each xml tag as one character. I want to ignore these types of characters. Info panel ignores these types of characters in character count. So I want to get info panel characters count.
Thanks & Regrads,
@Senthilvel – you could do a GREP find action on the selection with a simple dot and count the found characters.
app.findGrepPreferences.findWhat = "."; var myResultArray = app.selection.findGrep(); var myLength = myResultArray.length; alert("Number of characters in text selection:"+"\r"+myLength);
Any other implications?
I'd say, test this one first.
Thanks "Laubender" . The above code is working fine.