My script finds blocks of text which are have the character style "CS-Descriptor":
tell application "Adobe InDesign CS5"
set applied character style of find text preferences to "CS-Descriptor"
tell document 1
set myDescription to find text
end tell
end tell
This returns, e.g.
{text from character 1807 to character 1818 of storyid 21888 of documentid 19 of application "Adobe InDesign CS5"}
I now need to find more information about the immediate surroundings of this piece of text. Somehow I want to find out something like the paragraph number, or line number, so that I can find the first word of the line.
Can anyone help me get from 'text from character......' to 'paragraph 52 of text flow.... ' or something similar?
So far scripting ID my experience has been that it is much, much easier than I think! Fingers crossed it is again.
Sorry about Applescript - it seems to be dying out!
Emma