Question
InDesign scripts won't apply multiple pasteboardPreferences changes
I have a simple two-line script:
app.activeDocument.pasteboardPreferences.pasteboardMargins = ['200 mm',0];
app.activeDocument.pasteboardPreferences.matchPreviewBackgroundToThemeColor = 1;When I run it, only the last preference change is actually applied (in this case, changing the preview background). If I switch the order of lines, only the margins get changed. Why does this happen, and what is the best practice for avoiding it?
Using Adobe InDesign 18.0 on Windows 10.
