Adobe InDesign: SDK/Scripting Bugs and Features

  1. Separate the indesign scripting forum from the indesign community support forum

    With the relaunch of Adobe's community support forums, the indesign scripting forum was merged with the general indesign forum. Please separate the two so users can find the most relevant content.

    28 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    17 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  2. Table footnotes not indexed correctly

    Table footnotes are not indexed correctly in two ways: to the script engine they appear in the wrong order and table footnotes have no .index property.

    The attached document has one text frame with three footnotes in the main text and one table with one footnote. The table footnote is footnote 3. To reproduce the problem, do this:


    1. Open the document.

    2. Run this script against the document (in the ESTK):

    fnotes = app.documents[0].stories[0].footnotes
    for (i = 0; i < fnotes.length; i++) {

    $.writeln (fnotes[i].contents)
    

    }


    1. Expected output:

    . Note 1.
    . Note 2.
    . Note table.
    . Note 4.


    1. Actual output:

    . Note 1.
    . Note…

    16 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →

    Hello All,
    Thank you for reporting the issue to us.
    We have fixed the issue in the latest version of InDesign, Id 15.0

    Please upgrade your InDesign application to the latest version to try out the fix.

    If you face any problems with the new update, do let us know in the comments.

    You may also follow the below given link for the list of all fixed issues in Id 15.0
    https://helpx.adobe.com/indesign/kb/fixed-issues.html

    -InDesign Team

  3. GREP Find and replace Script not working CC2019

    We are getting below error while running the GREP script in InDesign CC2019, but same is working fine in CS6 version. Please check and fix this bug quickly to migrate CC2019 version.

    Error: User canceled this action

    7 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  4. TextFrame ExportFile to Snippet fails if source selection is inner text (ex: an insertionPoint)

    Select an insertionPoint, call parent textFrame through
    app.selection[0].parentStory.textContainers[0]
    Then
    call exportFile (snippet) on that object and export fails.
    It seems the scripting engine has kept the initial insertionPoint as reference when exportFile is called leading to an execution error (this export format cannot be applied to this object).
    It should work.
    Bug encountered with several versions/os.

    6 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  5. XSLX Import partially fails on Windows

    The problem is while manual import of XSLX files is no worries, it partially fails when the placement is called from script on Windows.
    The main issue is that sheetName property seems to be ignored leading to the first sheet always being placed no matter which sheetName has been set.
    The expected behaviour is that the sheetName set in app.excelImportPreferences.sheetname is correctly placed.
    No problem with old xls format or with xlsx on mac.

    6 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  6. Scripting | graphicLayerOptions : Changing visibility of graphicLayer will change ID number of placed graphic

    Problem Description:
    If you change the visibility of a graphicLayer of a placed graphic, could be a PDF, a PSD, an InDesign page or a AI file, the ID number of the placed graphic will change. The result of this is, that "everyItem().doSomething" with object graphicLayer will not work at all.

    Steps to Reproduce:
    1. Place a graphic with some graphic layers.
    2. Access the graphic layers of the graphic by scripting and try to change eg. currentVisibility for all graphic layers in one go.
    Frame holding the graphic is selected. The script snippet below should do this easily. However,…

    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  7. 5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →

    Hello All,
    Thank you for reporting the issue to us.
    We have fixed the issue in the 14.0.3 version of InDesign

    Please upgrade your InDesign application to the latest version to try out the fix. The latest version of InDesign is 15.0

    If you face any problems with the new update, do let us know in the comments.

  8. InDesign crashes when converting a table

    In the attached document, when I (try to) convert the tabbed text to a table, InDesign crashes.

    Steps to reproduce:


    1. Open the document from the attached zip file.

    2. Select the text frame.

    3. Run the following one-line script:

    app.selection[0].parentStory.texts[0].convertToTable ('\t', '\r');

    Expected result: a table.
    Actual result: InDesign crashes.

    Note: the crash does not happen when the tabbed text is converted manually:


    1. Select all the text

    2. Table > Convert Text to Table

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →

    Hello All,
    Thank you for reporting the issue to us.
    We have fixed the issue in the latest version of InDesign, Id 15.0

    Please upgrade your InDesign application to the latest version to try out the fix.

    If you face any problems with the new update, do let us know in the comments.

    You may also follow the below given link for the list of all fixed issues in Id 15.0
    https://helpx.adobe.com/indesign/kb/fixed-issues.html

    -InDesign Team

  9. Please expose a PDF's page count to scripting

    I posted this one in the general feature requests section, should have done that here in scripting. Here's the link:

    https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/32582917-please-expose-a-pdf-s-page-count-to-scripting

    It got quite a few votes over there. . .

    P.

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  10. Add MeasurementEditboxes to ScriptUI

    I'd love to see MeasurementEditboxes to ScriptUI. We had them previously, and I don't know why they were never added to ScriptUI.

    You can read more background here https://forums.adobe.com/thread/1007448

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  11. Indesign crash with findGrep()

    findGrep() causes a crash with the following terms:
    "w?"
    “\w?”
    “h?”
    “w?i?”
    ...

    e.g.:
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "w?";
    var _result = app.activeDocument.findGrep();

    4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →

    Hello All,

    Thank you for reporting the issue to us.
    We have fixed the issue in the latest version of InDesign, Id 14.0.3

    Please upgrade your InDesign application to the latest version to try out the fix.

    If you are unable to see the update yet, go to Creative Cloud desktop application, open the menu (three dots) from the top-right corner and click on ‘Check For App Updates’.

    If you face any problems with the new update, do let us know in the comments.

    You may also follow the below given link for the list of all fixed issues in Id 14.0.3
    https://helpx.adobe.com/indesign/kb/fixed-issues.html

  12. [15.0.0.155] New property Alternate Text for Hyperlinks is not supported by Scripting, IDMS and IDML

    Hi,
    I see no new property for a new feature with InDesign 2020 version 15.0.0.155:
    Alternate Text for Hyperlinks.

    The feature is also missing with IDMS and IDML.

    Regards,
    Uwe Laubender
    ( ACP )

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  13. Setting stroke weight to 0 by script results in 1 pt

    Given a frame (graphic or text) with stroke color set to 'None' and stroke weight set to 0, the jsx command "app.selection[0].strokeWeight = 0" sets the weight to 1pt and stroke color to the default swatch.

    Steps to reproduce:


    1. Create a new Document.

    2. Create a new Text (or Graphic) Frame.

    3. Set the stroke weight to 0 and color to 'None' if necessary

    4. Select the frame with the Selection tool.

    5. Start a script with a following one line:
      app.selection[0].strokeWeight=0

    Expected result: no change
    Actual result: stroke weight set to 1pt and color to the default swatch.

    Note:
    Setting stroke weight to…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  14. Allow keyboard shortcuts to be assigned by script

    Add the ability to assign keyboard shortcuts do built-in InDesign menu actions or panel menus by javascript.

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  15. Bug with index entry

    If you select a word after a table (»sit« in InDesign document: https://adobe.ly/2X0wXOi) and create an index entry using script, the page reference will be created after the word (under certain circumstances).

    var doc = app.activeDocument;
    var
    docIndex;

    if(_doc.indexes.length === 0) {

    _docIndex = _doc.indexes.add();
    

    } else {

    _docIndex = _doc.indexes.firstItem();
    

    }

    var textObj = app.selection[0];
    var
    parentTopic = docIndex.topics.add("Topicname");
    var
    pageRef = parentTopic.pageReferences.add(textObj);

    – word before that, everything's correct.
    – tables with 3 or more rows
    – the more table rows the more offset

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  16. A reference to panel item 25 breaks a script

    There's a rogue panel that breaks InDesign CC2019 when it is referenced (CC2018 is not affected).

    Open InDesign CC2019, then run this one-line script:

    app.panels[25].name

    Result: Error: 'Invalid object for this request'.

    Now do this:

    app.panels[25].isValid

    which returns true.

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  17. Inner glow size limited to 144pt

    Setting innerGlow size to larger than 144 pt via script causes an error for invalid value outside an expected range of 0-144. However, the UI allows size up to be over 13 inches. I have not tested all the other effects, but I believe this is the case for inner shadow and feather as well.

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  18. CC2019: Can't update or relink a link when a document is opened by a script.

    A fault introduced in CC2019: can't update or relink a link when a document is opened by a script.

    Steps to reproduce:


    1. To verify that with an existing open document the problem does not occur:
      a. Start a new InDesign document
      b. Place a graphic on the first page
      c. Run this script:

    app.documents[0].links[0].update();

    No error occurs.


    1. To reproduce the error:
      a. Save the document created in step 1 and close it.
      b. Run this script:

    s = '/d/test/links.indd'; // Use your string
    app.open (File(s));
    app.documents[0].links[0].update();

    Expected result: The links should be updated.
    Actual result: "Error: This file is already…

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →

    Hi,
    Please can you provide some more information related to the issue?
    1. OS
    2. Document and imported file location (local or network)
    3. File system type
    4. Can you share a sample document along with the imported file.
    5. Is the issue reproducible in ID 2020?
    6. A small video will help as well

    Thanks
    amaarora@adobe.com

  19. pdfComment -- no way to find relevant text in the document

    There has to be a way to get the relevant text in the document -- or else there's no point to making the pdfComments available

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  20. Preflight for books

    You can preflight books: myBook.preflight()
    But there is no corresponding function to preflight individual documents. Please add the preflight() function to the document object.

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
← Previous 1
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features

Categories

Feedback and Knowledge Base