Is there a method to change screen resolution (shell or AppleScriptObjC) that do not rely on UI scripting?
Two utilities are listed here, with source code that you might be able to adapt; I haven’t tried either:
Thanks!
DisplayPlacer seems to be the best choice.