Assuming the cursor is in a story or selected text in a story, how, from app.selection, can I determine the paragraph the cursor is in?
From the paragraph, I could get to the story but I can't find any "parent" properties from a selection to determine where it is at.
With the cursor in a story or with selected text:
app.selection.parentStory > the story
app.selection.paragraphs > the selected paragraph (if you selected more than one paragraph, only the first selected paragraph).
Retrieving data ...