Adobe InDesign: SDK/Scripting Bugs and Features
114 results found
-
ExtendScript access to animation path object
Inside of the animationSettings, there's no way to access or manipulate the motion path as a path object.
It would be useful to have access to that path and be able to run path functions on it (add/remove points, simplify, etc).
3 votes -
EvaluateXPath is not working with Namespace, Internet surfing is also not working on this task. For past 5years we searching for this.
EvaluateXPath is not working with Namespace, Internet surfing is also not working on this task. For past 5years we searching for this solution. kindly check and provide solution hope you are revisiting your old path.
3 votes -
Hanging & Overset Issue
Hanging & Overset is the Main Issue, still we cannot find the root cause why this is appearing in all the time. Please check the feasibility to avoid the Overset issues occurred for Long Text without having space or Long Tables and Mostly Hanging issues occurred in Keep Options On or Off. Please check the feasibility and do the needful.
3 votes -
Simple script crashes vanilla InDesign 2024 19.5 Debug version
Running this simple script (tested on Mac x86, Mac M1, and Windows) will crash Adobe InDesign 2024 Debug. It will not crash Adobe InDesign 2024 (regular version).
2 votes -
QR Code Contents Reader
Hi,
It would be really helpful if we were able to access the contents and colour of a QR code using a script so that they can be batch updated using a script.
For example, I have hundreds of documents containing 100 Web Hyperlink QR codes and I want to update all the ones that contain "utmcampaign=summersale" to now be "utmcampaign=summersale" and turn all the QR codes that are black to now be red.
2 votes -
Moving Anchoring Text to Anchored Object Crashes InDesign
Given a Text instance (
source
) that contains an anchored object (U+FFFC marker), the commandsource.move(…)
crashes InDesign if the destination (TextFrame, Text, InsertionPoint…) is itself an anchored object (or inside it).Code:
// Tested in ID CS6 and CC
// (see animation)
const BEG = LocationOptions.AT_BEGINNING;
var TFS = app.activeDocument.textFrames;source = TFS.itemByName('source').texts[0]; // Text: contains the anchor
host = TFS.itemByName('host'); // TextFrame: 'host' frame
dest = host.textFrames.itemByName('dest'); // TextFrame: 'dest' framesource.move(BEG,dest); // --> ID crash
//source.move(BEG,host); // WOULD BE OK
//source.duplicate(BEG,dest); // WOULD BE OK2 votes -
hyphenationExceptions in Dictionary
Hi,
app.documents[0].hyphenationExceptions.itemByName("English: UK").name.
It returns,
English: USA.
2 votes -
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 -
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 -
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 -
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 -
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 -
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 -
User Interaction Level resets during Data Merge
Using at the top of the InDesign tell block:
set user interaction level of script preferences to never interactThe way I understand user interaction levels, when set to 'never interact', it should suppress all dialog boxes from popping up.
When AppleScript performs 'merge records', and the merged record contains missing fonts, ONLY SOMETIMES a missing fonts dialog box pops up and breaks the script. One can close this dialog, run the script again, and the dialog doesn't appear. This unpredictability is why I'm logging it as a bug.
Looking at the JavaScript DOM, the userInteractionLevel is a setting at…
2 votes -
Default Composer doesn't change via SDK
If I change the Default Composer via the Preferences Advanced Type dialog then query it in a script using app.textDefaults.composer I can see it has changed. However when I change it via a script it appears to change when I query it again but it is not changed in the prefs dialog and if I create a new document it is not the default composer. This is all with no open documents btw.
2 votes -
Potential bug in IDHAMemoryXferBytes.cpp
Not 100% sure, but I think there is a small 'off by one' bug in IDHAMemoryXferBytes.cpp.
It's possible it is not causing issues - it all depends on what the calling code does with the class.
I think
pnum > numLeftInBuffer
should really be
pnum >= numLeftInBuffer
otherwise the routine does not flag EOF when we happen to request the exact number of remaining bytes.
See line with comment before it:
```
...
uint32 IDHAMemoryXferBytes::Read(void* buffer, uint32 pnum){
uint32 numToTransfer = 0;
…do { if (buffer == nil) { ASSERT_FAIL("buffer is nil!"); break; } uint32 numLeftInBuffer = this->fCountBytesStored -
1 vote -
Hindi page number
I am using the Hindi and Marathi fonts for InDesign, but the page numbering no matter how much I try it just keeps on coming in English numbers instead of Hindi numbers. Can you please update this feature too.
1 vote -
InDesign Scripting Guide - Script Requirements
Hi Team,
I am developing Adobe Plugins that work with Adobe Illustrator and InDesign. We need your support for the following requirements.
- Please provide an official scripting guide for Adobe InDesign.
- We cannot find the right script for the following actions in InDesign 2.1. To read and write leading from and to a Text Frame. 2.2. How to create groups or groupItems in InDesign? 2.3. How to add textFrames and other groupItems into the groupItem in InDesign? 2.4. To read and write width from and to a Text Frame. 2.5. To read and write height from and to a TextFrame.
…
1 vote -
CC 2022: outdated linked Indd-Document on MasterSpread replaces content
I am met with the following bug on our 2022 server (v17.4.2):
when updating outdated links via script I use this line:
openDoc.links.everyItem().update();
however, if those outdated links are linked indd-pages contained on my masterSpreads, then instead of updating the links, the contents of my document will be completely replaced by the contents of that linked file.
I encountered the same bug when using place() to place another indd document containing the same outdated links. So place() also replaced the contents of my file. the image shows the contents of my file before and after updating my links.
This is…
1 vote
- Don't see your idea?