Get Current cursor position in InDesign CS
Get Current cursor position in InDesign CS
- Subject: Get Current cursor position in InDesign CS
- From: Robert Kiolbassa <email@hidden>
- Date: Tue, 25 Oct 2005 09:25:05 -0500
- Thread-topic: Get Current cursor position in InDesign CS
Hello,
Thank you in advance for any assistance. I am trying to create a script for
use in InDesign CS (and CS2) that will create paragraph rule that is left
indented to the current cursor position in the current line. I can make the
paragraph rule just fine. However I am stumped on determining the distance
(in picas preferably) that the cursor is from the left boundary of the
current text frame. I would place that into the variable myLoc.
I tried to use the ³insertion point 1² that I found in a different script
that I saw, but I can¹t figure out if it can be used to return a distance,
and how that could be done.
This is what I have so far:
tell application "InDesign CS"
tell front document
tell paragraph 1 of selection
set myLoc to insertion point 1 - compiles without error,
but doesn¹t return a measurement
set myLoc to "7p6" -- This works, of course.
set properties to {rule below:true, rule below left
indent:myLoc, rule below line weight:0.5}
end tell
end tell
end tell
Bob
_______________________________________________
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