Adobe InDesign: SDK/Scripting Bugs and Features

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. A new TextFrame InsertionPoints.count changes from 1 to zero when linked to a previous frame and the program effectively crashes

    Replaces a previous post - this is written and tested in VB Script:

    Set myInDesign = CreateObject("InDesign.Application.2020")
    Set myDocument = myInDesign.Documents.Add
    Set myPage = myDocument.Pages.Item(1)
    Set myTextFrameA = myPage.TextFrames.Add
    myTextFrameA.geometricBounds = Array(72, 72, 144, 144)
    Rem Add a page.
    Set myNewPage = myDocument.Pages.Add
    Rem Create another text frame on the new page.
    Set myTextFrameB = myNewPage.TextFrames.Add
    myTextFrameB.geometricBounds = Array(72, 72, 144, 144)
    mycount = myTextFrameB.InsertionPoints.Count
    msgbox(mycount)
    myTextFrameA.NextTextFrame = myTextFrameB
    mycount = myTextFrameB.InsertionPoints.Count
    msgbox(mycount)
    myTextFrameB.InsertionPoints.FirstItem.Contents = "This is Bob"
    Rem "Program Crashes"

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  VB Script  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features

Categories

Feedback and Knowledge Base