Hi all, I have more details to this bug. I did a lot of Tests. Removing colors is not possible with InDesign Server versions upper 16.2. The last version it is working is 16.0
my code is:
var myDoc = app.documents.firstItem();
for(i=myDoc.unusedSwatches.length-1;i>=0;i--)
{
myDoc.unusedSwatches[i].remove();
}
Hi all, I have more details to this bug. I did a lot of Tests. Removing colors is not possible with InDesign Server versions upper 16.2. The last version it is working is 16.0
my code is:
var myDoc = app.documents.firstItem();
for(i=myDoc.unusedSwatches.length-1;i>=0;i--)
{
myDoc.unusedSwatches[i].remove();
}
In debug i get: This color cannot be deleted.
take a look to
https://community.adobe.com/t5/indesign-discussions/indesign-script-is-not-working-any-more-with-update-2020-to-2021-on-indesignserver/m-p/12720608#M463877%3Fprofile.language=de