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.
Thanks for reporting the issue. We are reviewing it
-InDesign Team
-
Uwe Laubender commented
Hi Peter,
with my German InDesign CC 2019 app.panels[24] seems to be non-exist.
app.panels[25].name returns "Separationsvorschau", that stands for "Separation Preview".var p = app.panels[25].getElements()[0];
p // returns [object Panel]Wheras with the panel index 24:
var p = app.panels[24].getElements()[0];
p // returns Object is invalidapp.panels[24].isValid //returns true
I see the same with my German InDesign 2020 version 15.0.0.155 on Windows 10.
Regards,
Uwe Laubender
( ACP )