Can I read text in a Text Frame from a plugin?

• Feb 16, 2022 - 06:35

I tried
"if (annotation.type == Element.TEXT)”.

That runs but does not see the Text Frame text.


Comments

A Frame is not an annotation, but a MeasureBase type thing, which is not accessible to Plugins.

You can get the text element from curScore.selection.elements if they are selected; but since they are excluded from range selections I don't think you can select them from within the API either.

Do you still have an unanswered question? Please log in first to post your question.