Adobe InDesign: SDK/Scripting Bugs and Features
118 results found
-
Indesign has stopped working / turns off when turned on / while document is open / after restoration turns off again
Hello, I am writing to you asking for help. Since yesterday, adobe indesign has stopped working properly. After creating a new document / or opening a file that I was working on, the program crashes. It gives you a file rollback and shuts down again. Once we managed to turn on the program for a moment, but it was enough to stick to paragraph styles and move the frame, the program turns off immediately. I would ask for info on this matter. Tried installing previous versions, still the same problem; I tried uninstalling and reinstalling the program and the situation…
1 vote -
Handle SpecialCharacters with unicode equivalents as normal text
SpecialCharacters are certainly necessary in places where there is no unicode equivalent (such as AUTOPAGENUMBER) but for many characters with unicode equivalents (BULLETCHARACTER, COPYRIGHTSYMBOL), it complicates string manipulation with no benefit (that I can see).
Example:
mySelectionContents = app.selection[0].contents;
alert("The current selection is when added to a string is " + mySelectionContents);
alert("The current selection is when coerced to a string is " + String(mySelectionContents));If you select a single bullet character, and force the specialCharacter to a string by adding it to the alert string you get "1396862068" or "BULLET_CHARACTER" if you explicitly convert to…
1 vote -
Bug when creating a form check box
Creating a check box anchored in a text frame systematically ends with a crash in ID v16.2.1.
javascript:
app.select( app.selection[0].paragraphs[0].insertionPoints[-2] );
app.selection[0].checkBoxes.add();applescript:
set thePoint to insertion point -2 of paragraph 1 of selection
tell thePoint to make check box1 vote -
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 -
Update Indesign script to support ES6
Update Indesign to support modern ES6.
1 vote -
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
-
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 -
1 vote
-
interactive form
Despite determining the activation sequence, the cursor with the tabulator does not jump to the correct field
1 vote -
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 -
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 -
Enable XML export in Word file format so tagging and attributes are preserved.
InDesign cannot currently export an XML structured file in Word file format, either because Word does not recognize the tags and attributes or because those elements are not within the document content. Please make an export possible so that XML structured content can be exported in Word file format and then reimported into InDesign.
1 vote -
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
- Don't see your idea?