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.
![](https://secure.gravatar.com/avatar/76f4510421f4a2fc938f52937eb5571b?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)