Adobe InDesign: SDK/Scripting Bugs and Features
118 results found
-
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 -
InDesign Scripting bug? Master Pageitems of specific Layer as Collection
I want to see all 'master' page items of all master spreads on a specific layer using code like this:
app.activeDocument.layers.itemByName('existLayerName').pageItems.everyItem().getElements();
Even such a layer contains 'master' page items, this code always returns an empty array!
1 vote -
1 vote
-
Events: 'afterSelectionAttributeChanged' (LayoutWindow)
The event 'afterSelectionAttributeChanged' (LayoutWindow) has the "Event" class, but logically its class should be "MutationEvent", since it is not clear which attribute of the object has been changed...
The mutation event in most classes that have an addEventListener method does not work.
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
-
Update Indesign script to support ES6
Update Indesign to support modern ES6.
1 vote -
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.
45 votesHi,
1. The majority of InDesign Scripting threads were merged and archived at first.
2. After a month or so, InDesign Scripting re-appeared as its own topic in the new forums.
3. David K. started un-archiving older threads last week, a few at a time, very slowly and by hand, because of odd server-side limitations.
4. There is no “Direct Link” to the Scripting Topic at this time, but this ought to be fixed with the current sprint from the forums team. The internal bug number is: ALFD-1530While we wait for ALFD-1530, there is a backdoor way to find direct links to topics. You can follow a topic then look at your follows… or just use these links:
• InDesign Scripting: https://community.adobe.com/t5/forums/filteredbylabelpage/board-id/indesign/label-name/scripting
• InDesign SDK: https://community.adobe.com/t5/forums/filteredbylabelpage/board-id/indesign/label-name/sdk
• InDesign Server Developers: https://community.adobe.com/t5/forums/filteredbylabelpage/board-id/indesign/label-name/server%20developersThanks
-
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 -
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
-
Catalina AppleScript seems to be broken
Tried a few samples that came with ID -- they all stop with errors
1 vote -
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 -
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 -
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
- Don't see your idea?