Adobe InDesign: SDK/Scripting Bugs and Features
7 results found
-
[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
-
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
-
TextFrame ExportFile to Snippet fails if source selection is inner text (ex: an insertionPoint)
Select an insertionPoint, call parent textFrame through
app.selection[0].parentStory.textContainers[0]
Then
call exportFile (snippet) on that object and export fails.
It seems the scripting engine has kept the initial insertionPoint as reference when exportFile is called leading to an execution error (this export format cannot be applied to this object).
It should work.
Bug encountered with several versions/os.7 votesThanks for reporting
We are reviewing the issue-InDesign Team
-
XSLX Import partially fails on Windows
The problem is while manual import of XSLX files is no worries, it partially fails when the placement is called from script on Windows.
The main issue is that sheetName property seems to be ignored leading to the first sheet always being placed no matter which sheetName has been set.
The expected behaviour is that the sheetName set in app.excelImportPreferences.sheetname is correctly placed.
No problem with old xls format or with xlsx on mac.6 votesThanks for reporting the issue. We are reviewing it
-InDesign Team
-
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
-
nextItem() doesn't work
Instructions:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that line 8 gives an "Object is invalid" error. That's because the nextItem() on line 6 didn't work.
To see this more clearly:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Comment line 6 and uncomment line 7.
- Run the script
- The script runs fine. It prints out "2", the name of the second page.
In other words, nextItem() is broken. The work around (in this case) is to use an…
1 voteWe’re reviewing this issue.
—
Adobe InDesign team
- Don't see your idea?