After years of scripting old Quark, I am making my first, faltering steps in InDesign. Starting with something simple, I am trying to get an applescript to detect a selected frame anywhere in a document. Following the examples, I have already conversed with a frame when I know which page it is on. What I am interested in is being able to get a script to work with no hard-wired references to "Page 1" etc. Hope I haven't overlooked something in the examples!
document.selection is what you are looking for i think. (JS - how it translates to AS i dont know, but in the OMV, under document, there should be a selection)
Thanks, Thomas, your JS hint was enough to get me where I wanted.