Number of character styles applied to a word - help required please
Hi eveyone,
Using the code below I can see the name of the character style is applied to a word.
var mySelection = app.selection[0];
alert(mySelection.words[6].appliedCharacterStyle.name)The code above seems to pick up the character style applied to the first part of it.
What I'm trying to do is check if there is more that 1 character style applied to a single word but, as yet I've not managed.
For example, 'posted', has 2 character styles applied - plain and bold. I'm trying to get that count in InDesign via a script.
Is it possible?
Thanks in advance.
