Script access to iTerm's theme

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: Build 3.1.4.beta.1
  • OS version: macOS High Sierra 10.13.1 Beta (17B42a)

I was wondering if there was some way to script the theme for iTerm2 from a proprietary escape sequence or OSA. I looked through the documentation and scripting dictionary and couldn't find it, so if this is already possible I'm curious how this can be done.