Element labels in scripting
I'm afraid my question will betray my ignorance, but can anyone help me use these 'element labels' (I think that's what they're called) in a script?


There are a number of text frames (or stories?) in the document, each with one of various labels. I want to collect elements with the same label and use their contents in a script. Unfortunately, I can't find a way to access those labels. I've tried collecting all textFrames, stories, pageItems... and then using ".label", but I don't get the expected results.
Can anyone help?
