Skip to main content
Known Participant
March 21, 2008
Question

How to get ID of textframe with textcursor?

  • March 21, 2008
  • 3 replies
  • 358 views
Please, help!
How can i obtain some ID of Textframe, where a'm typing now (where is text cursor)?
(working in CS3, with VBS)

And if it's not too difficult, how to ZoomIn from place with textcursor?

Thanks.
This topic has been closed for replies.

3 replies

Known Participant
March 24, 2008
Yess! It do work. Many thanks.
Known Participant
March 23, 2008
OK. First 3 lines work perfect. Thanks (very useful for me).
But last line cause "Object doesn't support this property or method".
May be there is need for some more correct writing of this line?
Known Participant
March 23, 2008
this should be OK

call myInDi.ActiveWindow.Zoom(idZoomOptions.idZoomIn)

robin

--
www.adobescripts.com
Known Participant
March 21, 2008
set myIP = myInDi.Selection.item(1)
set myTF = myIP.ParentTextFrames.Item(1)
call msgbox(myTF.ID)

call myInDi.LayoutWindow.Zoom(idZoomOptions.idZoomIn)

robin

--
www.adobescripts.com