I have a script, that after selecting text, can modify the appearance of digits. This action, consequently, covers all the numbers in the document through:
01. if (app.selection.length != 1)
[... here, the rest of the script]
How to modify this line to apply the changes only to those digits previosuly tagged with an specific character style?