I have a large text story spanning across many pages. It contains a number of paragraphs that have the following content:
[anchor character for an existing, but empty anchored text frame][leading text containing NO tab][TAB][middle text containing NO tab][TAB][trailing text containing NO tab][anchor character for another existing, but empty anchored text frame]
I need a script (preferably Javascript) that:
1. Find any paragraph that starts with an anchor character;
2. Find and cut the leading text between the anchor character and the first TAB after it;
3. Paste the leading text into the text frame anchored at the beginning of the paragraph;
4. In the same paragraph, find the trailing text between the second (and last) TAB and the second (and last) anchor character at the end of the paragraph;
5. Paste the trailing text into the text frame anchored at the end of the paragraph;
6. Repeat 1.-5. for all paragraph in the same story that starts with an anchor character.
I am an advanced JS programmer, but new to CreativeSuite scripting. I've kind of figured out how to search for certain text, and I know that the `parent` of an anchored object is a `Character` - but now to I access the content of an anchored object from its parent character?