I'm getting frustrated at not being able to call character styles within groups in a simple manner. Shouldn't it work the same way as for paragraph styles?
The following code is identical for the two style types, but while the paragraph style works the character style is invalid and has no properties assigned to it.
var testcstyle = myDoc.characterStyleGroups.item("callers").characterStyles.item("footnote-caller");//object is invalid var testpstyle = myDoc.paragraphStyleGroups.item("paragraphs").paragraphStyles.item("p");// works fine
check spelling of style names and style groups. as far as i see, the rest is correct.
Thanks for your quick response. The spelling is correct, but your answer helped me find that the style I was calling for was actually not in the group. It looked liked it was because it was below the folder in Indesign GUI, but apparently it wasn't...
That was one hour of pointless frustration...:)
Been there, done that! (And worst)
Best of luck!