Skip navigation
Paul Chernoff
Currently Being Moderated

Finding location of selection in InCopy [AppleScript]

Sep 2, 2011 11:17 AM

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

I then put the seleciton in a variable

set mySelection to selection of myDocument

mySelection is a list. The first object has the following definition:
text from character 1108 to character 1108 of story id 37515 of document id 7
But I cannot figure how to get the the character number (1108) into a variable.
Any ideas?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points