Getting text frames attached to page?

• Nov 28, 2024 - 20:05

From reading through the forum, I think the answer is ’No, you can’t’, but has anyone worked out a way of getting text frames attached to pages?

I know you can get the values of curScore.scoreName and curScore.composer, but often the user has manually overridden these values in the main text frame, without actually changing their underlying values, so that these values are not a reliable indicator of what actually appears on the score.

In addition, the user will often add subtitles, etc., which are unaccessible by a plugin as far as I can tell.

Here’s what I’ve tried so far:
— (Selection method) The main text frame is not selected when you Select All, so is unavailable through curScore.selection.elements
— (Cursor/Segment loop method) There is no segment filter or segment type associated with text frames
— (Other method) Neither curScore, Pages nor Systems have any way of accessing their children or lists of elements associated with them
— (Ideal) Ideally, it would be great if the API would let you ask for curScore.elements or, even better, curScore.elementsOfType(x)

I know some of you will suggest parsing the underlying XML or mscz file, but it’s really not that vital or important that I can be bothered :-)

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