Hi all,
I have a JXA script that updates label text on shapes. I found that if you use
shape.text = "something"
then any label styles are lost. The only way I found that preserves the label/text styling is:
shape.text.attributeRuns.first = "something"
Is this the right way? It appears to work, but the text doesn’t visually update unless I either click into the label or close and re-open the document. Any idea how I can make it update correctly?
Cheers, Ingo