Adobe InDesign: SDK/Scripting Bugs and Features
74 results found
-
inDesign crash with documents.loadMasters()
i have try to load master page by script (i post a small script test) but indesign crash... if i want copy masterspread from doc1 to doc 2 i must use "duplicate"...
target indesign
// create two document
var doc1 = app.documents.add()
var doc2 = app.documents.add()// add new master spread and set it
var master = doc1.masterSpreads.add()
master.namePrefix = "XX"// save document on disk and get file
doc1.save()
var doc1File = doc1.filePath// close
doc1.close()// load master spreads of doc1 on doc 2
doc2.loadMasters(doc1File)1 vote -
Make ImageCatalog Script an integral contact sheet function in InDesign
Good morning. There is a sample script in InDesign that I LOVE! It makes contact sheets much quicker (and using far less memory) than Photoshop or Bridge. If you have a hundred images and want to make a contact page, this script is the way to go. Much more efficient. The Script is the ImageCatalog under JavaScript samples in the Scripts window. This has always been available, and always worked very well until the last couple of updates. Now when I run it, it just sits there. If I try saving the images again (save a copy) or saving them…
1 vote -
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 -
[CS6 to 2020 15.0.1.209] documentPreferences.snippetImportUsesOriginalLocation | values true and false do the opposite what they should do
Hi,
if I set value for snippetImportUsesOriginalLocation of documentPreferences to true, InDesign will place a snippet file with spread.place( snippetFile ) always at the current zero point [0,0].Wheras I set the value to false the snippet will be placed at its original position.
It should be exactly the other way.
Currently value false will use the original position and value true will chose the current zero point as defined with app.documents[0].zeroPoint .
Tested with German InDesign versions:
CS6 8.1.0
CC 2014 10.2.
2020 v. 15.0.1.209
All on WIndows 10.In the discussion linked to below Gerald Singelmann can see…
1 vote -
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 -
Script failing ... strangely
Instructions:
- Load Script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that the script gives an error on line 6 (Invalid object for this request.) This is because TextFrame281 and TextFrame284 are the same object. They should be different objects.
To see this more clearly:
- Load script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Uncomment line 4 (var temp = TextFrame_281.id)
- Run the script
- The script runs fine. If you look in the document that has been created, the two text…
1 vote -
How to turnoff Type contextual controls in Indesign CC 2018?
app.typeContextualUiPrefs.showFractionsUi = false;
don`t work3 votes -
The Script FindChangeByList.jsx not working CC2019
Dont Working script
1 vote -
Allow for control of undo tracking Re: Undo Set Scripting Tag
Currently the only way to manipulate the undo queue is to run a script with doScript and even then it's very limiting. With my current event listeners, the user clicks around a few times and the undo queue fills up with 'Undo Set Scripting Tag' and they are unable to undo simple changes without holding down CTRL+Z for a few seconds. I am unable to use doScript because I need to return values to my interface. I would like to suggest an option to temporarily suspend undo tracking during certain script actions. Some of my actions do not change the…
1 vote -
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
-
ScriptUI: Opening Dialog while dialog is open breaks InDesign
I posted that bug in gerneral Bugs section. Belongs to Scripting though:
https://indesign.uservoice.com/forums/601180-adobe-indesign-bugs/suggestions/37298593-scriptui-opening-dialog-while-dialog-is-open-brea5 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the 14.0.3 version of InDesignPlease upgrade your InDesign application to the latest version to try out the fix. The latest version of InDesign is 15.0
If you face any problems with the new update, do let us know in the comments.
-
Preferences folder access via ExtendScript with macOS Catalina public beta 3
I've installed macOS X Catalina public beta 3 and I have an annoying issue with scripting.
I can't access to the user's preferences folder via Javascript even if I've assigned to InDesign full file system access in the security panel of the system preferences.
I can't read any files inside the user's Library so that I can't load a GREP query for example.Hope you find a fix on this.
1 vote -
Table footnotes not indexed correctly
Table footnotes are not indexed correctly in two ways: to the script engine they appear in the wrong order and table footnotes have no .index property.
The attached document has one text frame with three footnotes in the main text and one table with one footnote. The table footnote is footnote 3. To reproduce the problem, do this:
- Open the document.
- Run this script against the document (in the ESTK):
fnotes = app.documents[0].stories[0].footnotes
for (i = 0; i < fnotes.length; i++) {
$.writeln (fnotes[i].contents)
}- Expected output:
. Note 1.
. Note 2.
. Note table.
. Note 4.- Actual output:
. Note 1.
. Note…16 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the latest version of InDesign, Id 15.0Please upgrade your InDesign application to the latest version to try out the fix.
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 15.0
https://helpx.adobe.com/indesign/kb/fixed-issues.html-InDesign Team
-
InDesign crashes when converting a table
In the attached document, when I (try to) convert the tabbed text to a table, InDesign crashes.
Steps to reproduce:
- Open the document from the attached zip file.
- Select the text frame.
- Run the following one-line script:
app.selection[0].parentStory.texts[0].convertToTable ('\t', '\r');
Expected result: a table.
Actual result: InDesign crashes.Note: the crash does not happen when the tabbed text is converted manually:
- Select all the text
- Table > Convert Text to Table
4 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the latest version of InDesign, Id 15.0Please upgrade your InDesign application to the latest version to try out the fix.
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 15.0
https://helpx.adobe.com/indesign/kb/fixed-issues.html-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 -
ExtendScript feature: asynchronous PDF export for indb books
I'd like to see an asynchronous export option for indb books as it exists for indd documents because why not.
Currently I work with 10 indb projects and I'd like to export them by 4 using all the power of my 4-core cpu, but I can only export them one by one due to lack of asynchronous export option.
At the same time I'm able to export 4 indd files using existing asynchronousExportFile() method.1 vote -
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 -
Arrow with start/end in scale
If I have an line with a start/end and it's in different scale, when use transformation method, the start/end doesn't scale, even with "Adjust Stroke Weight when Scaling" and "Adjust Effects when Scaling" are turned on. See screenshots of before and after procedure.
1 vote -
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
-
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
- Don't see your idea?