cells selection
Bug 1:
See "Table 1" in the provided screenshot.
Make a table with 3 columns and 3 rows.
Merge the first 2 cells of the first row.
Now you have 2 cells in the first row. (A and B).
Set the contents of other cells to C, D, E, F, G, H.
Now select cells B, D and E.
If you click on the Edit menu, InDesign crash.
If you choose File -> Export, InDesign crash.
On the scripting side, calling document.selection throw an exception and it is not possible to get the current selection.
Bug 2:
See "Table 2" in the provided screenshot.
Make a table with 2 columns and 4 rows.
Split the second cells of the first row.
Now you have 3 cells on the first row.
Set the contents of the cells to numbers from 1 to 9.
Now select cells 1, 2, 4, 5, 6, 7, 8, 9 (skip cell 3).
Run this code:
var doc = app.activeDocument;
var selectedCells = doc.selection[0].cells;
var i, ilen, contents = [];
for (i = 0, ilen = selectedCells.length; i < ilen; i++) {
contents.push(selectedCells[i].contents);
}
alert(contents.join('-'));
expected result: 1-2-4-5-6-7-8-9
current result: 1-2-3-4-5-6-7-8 (cell 3 is not part of the selection, cell 9 is missing).
Applescript and VBscript don't have this problem, only ExtendScript.
This happens with all versions of InDesign.
This bug was already reported over a year ago (https://indesign.uservoice.com/forums/601180-adobe-indesign-bugs/suggestions/41451565-script-selection-on-merged-row-makes-indesign-cr)
Please fix as soon as possible!!!!
why is it not possible to upload .indd files? You are talking about InDesign bugs and it is not possible to provide a .indd file???? Why???