Question
InDesign Script is not working any more with update 2020 to 2021 on InDesignServer
Dear Community,
I have a simple code to delete all unused layers, swatches and more. After the update InDesign Server 2020 to 2021 deleting swatches it is not working any more. The rest scripts are working. For example delate different layer.
On InDesign Desktop it is working.
Is this a bug on this server version, or how can I fix it? I also tried out to delete swatches with function options. It is not working too.
System: OSX
var myDoc = app.documents.firstItem();
for(i=myDoc.unusedSwatches.length-1;i>=0;i--)
{
myDoc.unusedSwatches[i].remove();
}
