Script for toggling preferences?

First, since moving to DEVONthink late last year, it has become one of the apps that I use the most. I am really enjoying getting to know the capabilities of the app.

One thing that I notice is that when I am importing a lot of files, I often want to turn on the preference:
General > Appearance > Mark duplicates and replicants in color

And then, I sometimes want to toggle on:
General > General > Stricter recognition of duplicates

And then when I’m done processing the newly imported files, turn both off. (The subtle duplicate icon is perfect for me in day to day use.)

Once I have a script to toggle each setting, I would add custom keyboard shortcuts to trigger the script.

I didn’t see a way to set preferences in the scripting dictionary.

I am guessing I could probably call out to the defaults command line tool, but wanted to see if there was a suggested way of doing this.

Thank you.

Because there is none. There might be ways to manipulate the UI with tools like BetterTouch Tool or Keyboard Maestro and the like.

I doubt that.