Skip to main content
May 10, 2016
Question

Textframe insertionpoint

  • May 10, 2016
  • 3 replies
  • 455 views

Hi

I m trying to get the insertion point of the first textframe in the page.

My code:

var ins=idPage.textFrames.item(0).insertionPoints.item(0);

But this is showing "ins" as invalid object and count of insertion point for this textframe is 0(zero)

Where is it wrong? How can i get the insertion point of the textframe?

Please suggest

Thank You

This topic has been closed for replies.

3 replies

TᴀW
Legend
May 10, 2016

Maybe your variable idPage is invalid.

id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
tpk1982
Legend
May 10, 2016

this thread show how insertion point works:

How does insertionPoints work?

tpk1982
Legend
May 10, 2016

What you are going to do with insertion point? You want to place the cursor in first text frame?

May 10, 2016

I want to get the textframe number

tpk1982
Legend
May 10, 2016

let say var ins=app.activeDocument.textFrames.item(0).insertionPoints.item(0);

ih the above coding you mentioned textFrames.item(0), that means it is first text frame..