Select text with character style applied.
Hello everybody...
I need some help with this problem.
I've got a text spotted here and there with Jewish words. As you certainly know, it could happen that you need to "flip" Jewish words (as arabic ones and so on...) because the correct writing sense is from right to left.
The usual script used is ReverseText, but you need to select each Word and then run the script.
Instead, I'd like to select every instance of the Character Style JEWISHWORD I assigned...
JEWISHREVERSE = JEWISHREVERSE.split("").reverse().join("");
app.selection[0].contents = JEWISHREVERSE;