Adobe InDesign: SDK/Scripting Bugs and Features
114 results found
-
fos az egesz
szar
1 vote -
publish online services
yesterday, i was able to publish online the document in indesgin. Today it says i am not able to publish online the document as the server is not available.
I tried diffrebt ways can you help?1 vote -
BUG - Scripting: multiple paragraph styles for multiple paragraphs in one text box not working correctly
Paragraph styles are not being applied correctly when setting more than two paragraph styles for more than one paragraph in a text box.
For three or more paragraphs, paragraph n is set to paragraph style n, and paragraphs 1 through n-1 are set to paragraph style n-1. The expected behaviour would be that paragraph 1 is set to paragraph style 1, paragraph 2 is set to paragraph style 2, paragraph 3 is set to paragraph style 3, ..., paragraph n is set to paragraph style n.
1 vote -
InDesign Server + Catalina = heavy permission problems
--- Update: PROBLEM SOLVED. See comment below ---
We have run into to serious problems with running InDesign Server (IDS) on Mac OS 10.5.x Catalina: The problems are somehow related to file permissions and will only show when the IDS instances are started by launch agents (or launch deamons).
This problem manifests itself in several ways we have encountered – using IDS CC 2020 as well as IDS 2019:
- Documents can only be opened from a limited number of locations – actually only one location as far as we know, the
/private/tmp/
directory on the local machine. When one of…
1 vote - Documents can only be opened from a limited number of locations – actually only one location as far as we know, the
-
Can't retrieve XMP-metadata from Cloud-stored files
Hello Adobe and hello Community,
I'm having a problem with a Javascript I wrote to retrieve XMP metadata from linked files, that are stored in a Creative Cloud Library (Bought from Adobe Stock -> stored in a Library, because i was unable to download the files).
Ultimately, the script retrieves the Creditline of all the linked graphics in an InDesign-file / InDesign-files in a folder by bulk processing.
I have to accesse the XMP to retrieve the correct copyrightinfo.
@Adobe: On Adobe Stock you guys put the information to give credit to the creator in the XMP field "Creditline" (creator…4 votes -
Catalina AppleScript seems to be broken
Tried a few samples that came with ID -- they all stop with errors
1 vote -
HyperlinkTextDestination elements missing from anchored objects in exported icml
When exporting icml from InDesign, anchored objects with hyperlink text destinations inside of them are missing those destinations.
Steps to reproduce:
- Make a new document with text.
- Insert an anchored text frame with text into the story.
- Insert a hyperlink text destination into the anchored text frame.
- Create a hyperlink from outside of the text frame to inside of it.
- Export icml of the story.
In the exported icml, the hyperlink destination will be missing and the link will be broken.
12 votes -
A new TextFrame InsertionPoints.count changes from 1 to zero when linked to a previous frame and the program effectively crashes
Replaces a previous post - this is written and tested in VB Script:
Set myInDesign = CreateObject("InDesign.Application.2020")
Set myDocument = myInDesign.Documents.Add
Set myPage = myDocument.Pages.Item(1)
Set myTextFrameA = myPage.TextFrames.Add
myTextFrameA.geometricBounds = Array(72, 72, 144, 144)
Rem Add a page.
Set myNewPage = myDocument.Pages.Add
Rem Create another text frame on the new page.
Set myTextFrameB = myNewPage.TextFrames.Add
myTextFrameB.geometricBounds = Array(72, 72, 144, 144)
mycount = myTextFrameB.InsertionPoints.Count
msgbox(mycount)
myTextFrameA.NextTextFrame = myTextFrameB
mycount = myTextFrameB.InsertionPoints.Count
msgbox(mycount)
myTextFrameB.InsertionPoints.FirstItem.Contents = "This is Bob"
Rem "Program Crashes"1 vote -
1 vote
-
interactive form
Despite determining the activation sequence, the cursor with the tabulator does not jump to the correct field
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 -
Crash when adding a "checkbox" into a "cell" of a table
I'm trying to add a Checkbox into a cell of a table with JavaScript.
When executing the code InDesign crashes.With my Script I'm looking for certain text in a table, delete it from the cell and then want to add a checkbox instead. So my code is looking something like this:
var found = app.documents[0].findGrep();
found[0].parent.contents = "";
var myBox = found[0].checkBoxes.add();0 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 -
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 -
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 -
Make the (Black) Color Swatch a TRUE BLACK
In the Appearance Panel, the (Black) color swatch is not a TRUE BLACK color and when this color swatch is used and a file is exported to PDF, Rich black is not achieved.
The attached document shows a few shapes that are black. The top right is a true black color and the color swatch had to be changed from the standard (BLACK) color swatch in order to be achieved when exporting to a PDF. The left and bottom color swatches have the (Black) color swatch from the appearance panel applied.
Please, Please, Please, make the (Black) color swatch a…
3 votes -
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("export").isValid){ app.preflightProfiles.itemByName("export").remove(); } var pfProfile = app.preflightProfiles.add({name: "export"}); var pfResRule = pfProfile.preflightProfileRules.add("ADBE_ImageResolution", {flag: PreflightRuleFlag.returnAsError}); pfResRule.ruleDataObjects.add("color_min_res", RuleDataType.realDataType, 250); currDoc.preflightOptions.preflightScope = '1-2'; 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’…
8 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. 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 -
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
- Don't see your idea?