Skip to main content
gdwd
Known Participant
November 9, 2022
Answered

How do you make a document's Preview Background Match to Theme Color with a script in InDesign 18.0?

  • November 9, 2022
  • 1 reply
  • 343 views

Before a recent update, InDesign documents would just listen to my default preference for Preview Backgrounds to Match to Theme Color, under Preferences > Guides & Pasteboard. I can set that preference, but it doesn't do anything.

 

This thread recommends using app.generalPreferences.pasteboardColorPreference, but that doesn't do anything (as expected, since it doesn't seem to target an actual document; my application is already using that setting). https://community.adobe.com/t5/indesign-discussions/how-to-disable-the-match-pasteboard-to-theme-color-using-script/m-p/11798217

 

How can I use a script to set documents to use Match to Theme Color?

This topic has been closed for replies.
Correct answer m1b

Ah! I see. How about this:

doc.pasteboardPreferences.matchPreviewBackgroundToThemeColor = 1;

- Mark 

1 reply

m1b
Community Expert
Community Expert
November 9, 2022

Hi @gdwd, I just tried the answer from the post you linked and it worked for me.

app.generalPreferences.pasteboardColorPreference = 1;

 If that doesn't work for you, it might be helpful to post your Indesign version and OS.

- Mark

gdwd
gdwdAuthor
Known Participant
November 10, 2022

It "works" in that it changes my application's setting, but it doesn't work in that it doesn't change my document's setting.

Using InDesign 18.0 on Windows 10.

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
November 10, 2022

Ah! I see. How about this:

doc.pasteboardPreferences.matchPreviewBackgroundToThemeColor = 1;

- Mark