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.

    31 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. PreflightScope not working

    PreflightOptions.preflightScope in InDesign has not worked since at least CS 5.5. No matter what value is used, preflight checks the whole document. Here is a sample script (error for color image <250 ppi) that the issue can be tested:

    var currDoc = app.documents[0];
    
    if (app.preflightProfiles.itemByName(&quot;export&quot;).isValid){
    app.preflightProfiles.itemByName(&quot;export&quot;).remove();
    }
    var pfProfile = app.preflightProfiles.add({name: &quot;export&quot;});
    var pfResRule = pfProfile.preflightProfileRules.add(&quot;ADBE_ImageResolution&quot;, {flag: PreflightRuleFlag.returnAsError});
    pfResRule.ruleDataObjects.add(&quot;color_min_res&quot;, RuleDataType.realDataType, 250);
    currDoc.preflightOptions.preflightScope = &#39;1-2&#39;;
    var pfProcess = app.preflightProcesses.add(currDoc, pfProfile);
    pfProcess.waitForProcess();
    pfResults = pfProcess.aggregatedResults[2];
    $.writeln(pfResults);

    ––> with a 3-page document with problems on pages 2 and 3, InDesign reports both problems despite the scope been set to ‘1-2’ (same with ‘1’…

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

    We’ll send you updates on this idea

    1 comment  ·  CEP  ·  Flag idea as inappropriate…  ·  Admin →
  3. Collapse Treeview not working

    On Indesign CC (Win or Mac) :
    Treeview with multi levels can be expand with recursive function;
    But collapse operation seems to be not working with similar function;

    On Indesign CS6 (Win or Mac) :
    Treeview with multi levels can be expand.
    Collapse operation runs halfway. But items (not node) on first level are indented too much.

    Run Script treeviewexpandcollapse.jsx to test it

    4 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 →
  4. [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 )

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

    We’ll send you updates on this idea

    3 comments  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  5. Scripted iterative document open/close fails to close files

    Note: my sample code is jsx, but the problem may not be limited to jsx. Change the filetype of my provided files from txt to jsx prior to using!

    We have multiple products that sometimes show a problem with document.close() not actually closing the file, leading to incorrect functioning, memory bloat, slowdowns, and we believe some crashes. I provide a test script that takes a currently open document and iteratively copies it, opens the copy, then closes the copy -- after the loop is finished, the copy files are removed.

    Important: If run from the ESTK or Scripts Panel, the…

    2 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. 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 →
  7. Bug When Overriding Master Page Items: Unexpected Shift of Master Page Objects

    When overriding page items by script, those items are unexpectedly shifted and do not stay in the x/y position, they are on the master page. This differs widely from the UI-behaviour of InDesign.

    There is a very good view and analysis of this bug from Marc Autret, which can be found here:
    http://www.indiscripts.com/post/2014/06/indesign-scripting-forum-roundup-6#hd1sb2

    2 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 →
  8. 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 →
  9. Bug in IXMLOutStream.h header file

    InDesign2020SDK/source/public/interfaces/xmedia/IXMLOutStream.h:499

    void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse)
    
    { this-&gt;WriteName(name, newLine); }

    This function calls itself. It leads to a stack overflow on Windows but the code analyzer in Xcode catches it and reports an error during compilation. It can be changed to:

    void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse)
    
    { this-&gt;WriteName(WideString(name), newLine); }

    and it will work (it calls the previous function in the file instead).

    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  ·  C++ SDK  ·  Flag idea as inappropriate…  ·  Admin →
  10. Scripted iterative document open/close fails to close files

    Note: my sample code is jsx, but the problem may not be limited to jsx.

    We have multiple products that sometimes show a problem with document.close() not actually closing the file, leading to incorrect functioning, memory bloat, slowdowns, and we believe some crashes. I provide a test script that takes a currently open document and iteratively copies it, opens the copy, then closes the copy -- after the loop is finished, the copy files are removed.

    Important: If run from the ESTK or Scripts Panel, the script works as expected -- no problems. If run from a custom menu (setup…

    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  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  11. Enable XML export in Word file format so tagging and attributes are preserved.

    InDesign cannot currently export an XML structured file in Word file format, either because Word does not recognize the tags and attributes or because those elements are not within the document content. Please make an export possible so that XML structured content can be exported in Word file format and then reimported into InDesign.

    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  ·  C++ SDK  ·  Flag idea as inappropriate…  ·  Admin →
  12. 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.

    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 →
  13. La nueva versión indesign 2020 ya no tiene la opción de Flip page para flash.

    La nueva versión indesign 2020 ya no tiene la opción de Flip page para flash.

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

    We’ll send you updates on this idea

    1 comment  ·  InDesign Server  ·  Flag idea as inappropriate…  ·  Admin →
  14. inDesign crash with documents.loadMasters()

    i have try to load master page by script (i post a small script test) but indesign crash... if i want copy masterspread from doc1 to doc 2 i must use "duplicate"...

    target indesign

    // create two document
    var doc1 = app.documents.add()
    var doc2 = app.documents.add()

    // add new master spread and set it
    var master = doc1.masterSpreads.add()
    master.namePrefix = "XX"

    // save document on disk and get file
    doc1.save()
    var doc1File = doc1.filePath

    // close
    doc1.close()

    // load master spreads of doc1 on doc 2
    doc2.loadMasters(doc1File)

    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  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  15. Make ImageCatalog Script an integral contact sheet function in InDesign

    Good morning. There is a sample script in InDesign that I LOVE! It makes contact sheets much quicker (and using far less memory) than Photoshop or Bridge. If you have a hundred images and want to make a contact page, this script is the way to go. Much more efficient. The Script is the ImageCatalog under JavaScript samples in the Scripts window. This has always been available, and always worked very well until the last couple of updates. Now when I run it, it just sits there. If I try saving the images again (save a copy) or saving them…

    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  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  16. IDML resources

    On https://www.adobe.com/devnet/indesign/documentation.html site links are not working at the IDML section. Please fix it!

    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  ·  InDesign Server  ·  Flag idea as inappropriate…  ·  Admin →
  17. 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

    6 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 →
  18. [CS6 to 2020 15.0.1.209] documentPreferences.snippetImportUsesOriginalLocation | values true and false do the opposite what they should do

    Hi,
    if I set value for snippetImportUsesOriginalLocation of documentPreferences to true, InDesign will place a snippet file with spread.place( snippetFile ) always at the current zero point [0,0].

    Wheras I set the value to false the snippet will be placed at its original position.

    It should be exactly the other way.

    Currently value false will use the original position and value true will chose the current zero point as defined with app.documents[0].zeroPoint .

    Tested with German InDesign versions:
    CS6 8.1.0
    CC 2014 10.2.
    2020 v. 15.0.1.209
    All on WIndows 10.

    In the discussion linked to below Gerald Singelmann can see…

    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  ·  Java Script  ·  Flag idea as inappropriate…  ·  Admin →
  19. 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 →
  20. textStyleRange.convertToNote() becomes very confused.

    I'll attach a self-contained script which first creates in order to demonstrate problems with textStyleRange.convertToNote(). The script creates a small document containing "b"s. These are marked with a smaller pointSize so that they form individual textStyleRanges. The script then converts these textStyleRanges into notes. Unfortunately, the script terminates with a message: "Object is invalid; tsr.convertToNote()". This message happens because the scripting engine has become confused and is trying to convert a "b" within a note into another note. This shouldn't happen and is the first problem.

    Open the story window. The beginning of the story has a clear pattern of…

    2 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 3
  • Don't see your idea?

Adobe InDesign: SDK/Scripting Bugs and Features

Categories

Feedback and Knowledge Base