Re: Get Current cursor position in InDesign CS
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