Skip to content

Adobe InDesign: SDK/Scripting Bugs and Features

2 results found

  1. The CreateTOC function regularly crashes InDesign 18.0.

    It has worked fine in previous versions of ID (at least up to v17.0).
    I've yet to work out the fine details, but some documents I create are fine. Most aren't. Creating the TOC manually seems to work.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  VB Script  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  VB Script  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features

Categories

Feedback and Knowledge Base