Adobe InDesign: SDK/Scripting Bugs and Features
124 results found
-
1 vote
-
False state with app.gpuPerformancePreferences.enableGpuPerformance if no GPU available
Function GetEnableGPUPerformance() of interface IGPUPerformancePrefs of GetExecutionContextSession()->QueryWorkspace() returns true in case no GPU or a not supported GPU is installed on your macOS computer.
To reproduce launch InDesign CC 2018 or later with modifier keys command, option, control, and shift pressed and confirm resetting the preferences.
If you now check the setting either with some C++ code, or ExtendScript "app.gpuPerformancePreferences.enableGpuPerformance", in both cases the returned result is true , which is not the expected result.
When you now choose Preferences > GPU Performance the properties are shown deselected and disabled, which is correct. If you now click in "OK", the…
2 votes -
interactive form
Despite determining the activation sequence, the cursor with the tabulator does not jump to the correct field
1 vote -
[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 )8 votesThanks for reporting the issue. We are reviewing it
-InDesign Team
-
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#hd1sb28 votes -
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:
- Create a new Document.
- Create a new Text (or Graphic) Frame.
- Set the stroke weight to 0 and color to 'None' if necessary
- Select the frame with the Selection tool.
- 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…7 votes -
Text variable instances. Please change TextVariableInstance::resultText from read only to read/write for modifying with scripts
It would also be nice to plug a script to modify the text replacement from the text variable dialog.
Such an opportunity is needed, for example, for alternatively replacing paragraphs that are too long with a shortened version.
2 votes -
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.
16 votes -
Add an Application Event for "failedToOpen", similar to "beforeOpen" and "afterOpen"
It would be useful to be able to create an Event Listener that would fire when a document failed to open. It would be great if we could cancel the default behavior using the PreventDefault.
My use case is the following. We offer a script that adds a custom menu item to allow users to select, convert, and open files that aren't usually supported by InDesign. We want to be able to offer the same type of functionality if the user attempts to open one of our supported file types through the standard Open Dialog (File->Open).
We would set up…
2 votes -
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 -
app.activeBook
When more than one book is open, selecting the book tab (when they're tabbed), doesn't work for app.currentBook in scripting. It's needed to click inside the book panel to have it targeted. Just the tab selected doesn't work.
2 votes -
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
8 votes -
The scale X percentage option shold have short key so that I don´t have to write 100% manually in the meny while working in prepress.
The scale X percentage option shold have short key so that I don´t have to write 100% manually in the meny while working in prepress. When I update links in my prepress documents the scale down to 91% and that´s really frustrating that I can´t just mark them and use a short key to resize them to 100%. Especially if you have updated for example 50 links.
1 vote -
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 -
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 -
Bug in IXMLOutStream.h header file
InDesign2020SDK/source/public/interfaces/xmedia/IXMLOutStream.h:499
void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse) { this->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->WriteName(WideString(name), newLine); }
and it will work (it calls the previous function in the file instead).
4 votesThe fix for this issue is now available in the latest versions of InDesign – version 16.0 and above.
Please update to this version to get the fix.—
Adobe InDesign team -
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,…8 votesThanks for reporting the issue. We are reviewing it
-InDesign Team
-
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 offset8 votesThanks for reporting
We are reviewing the issue-InDesign Team
-
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 -
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
- Don't see your idea?