• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get Current cursor position in InDesign CS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get Current cursor position in InDesign CS


  • Subject: Re: Get Current cursor position in InDesign CS
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 26 Oct 2005 08:25:34 +1000
  • Thread-topic: Get Current cursor position in InDesign CS

On 26/10/05 12:25 AM, "Robert Kiolbassa" <email@hidden> wrote:

> I am stumped on determining the distance (in picas preferably) that the cursor
> is from the left boundary of the current text frame.

You want the "horizontal offset" property of the insertion point, which will
tell you how far it is from the left of the page. Subtract the left of the
frame, something like this:

tell application "Adobe InDesign CS2"
    set thePos to horizontal offset of selection
    set {a, b, c, d} to geometric bounds of item 1 of parent text frames of
selection -- in CS2
    --set {a, b, c, d} to geometric bounds of parent text frame of selection
-- in CS
    set myLoc to thePos - b
end tell


--
Shane Stanley <email@hidden>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Get Current cursor position in InDesign CS (From: Robert Kiolbassa <email@hidden>)

  • Prev by Date: Re: Producing Unicode-only characters
  • Next by Date: Re: Producing Unicode-only characters
  • Previous by thread: Get Current cursor position in InDesign CS
  • Next by thread: Re: Get Current cursor position in InDesign CS
  • Index(es):
    • Date
    • Thread