This is a variation of my request from yesterday. I am able to select the last character of the last column of the story. I now want to know the location of that character.
For example, I find the last character with this lin of code
select text of last character of last word of last text column of myStory
set mySelection to selection of myDocument
I have some of my answer. I set a variable to the index of the given character. See below.
tell application "Adobe InCopy CS5"
set myDocument to active document
set mySelection to selection of myDocument
set myTextObject to item 1 of mySelection
set myStory to parent story of myTextObject
set myOverset to overset text of myStory
set myText to index of last character of myTextObject
set howMany to count characters of myStory
select character 20 of myStory
end tell
Now to figure out how to select a selection of text.
This works:
select character 20 of myStory
North America
Europe, Middle East and Africa
Asia Pacific