Adobe InDesign: SDK/Scripting Bugs and Features
74 results found
-
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 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the latest version of InDesign, Id 14.0.3Please 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 -
[ExtendScript/UXP] Position layoutWindow viewport
I would like to be able to specify a layoutWIndow viewport's center.
In Illustrator, we can position the center of the window's (a View, in Illustrator) viewport in document coordinates, so we can, for example, center a page item in the window.
I would much appreciate this addition to Indesign scripting.
3 votes -
How to turnoff Type contextual controls in Indesign CC 2018?
app.typeContextualUiPrefs.showFractionsUi = false;
don`t work3 votes -
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 votesThanks for reporting the issue. We are reviewing it
-InDesign Team
-
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 -
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:
- 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.
- 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 votesHi,
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 wellThanks
amaarora@adobe.com -
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 -
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 -
ScriptUI Centering Breaks when switching monitor
If you switch monitors (i.e., unplug your laptop from a large monitor and go to present at a conference), and don't restart InDesign, scriptUI doesn't update the center position of the monitor.
It causes scriptUI windows to appear out of place.
3 votes -
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 -
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 -
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 -
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
- Don't see your idea?