We’re working on a UXP based plug-in for Adobe InDesign and trying to handle with the user adjusts the User Interface Scaling. In macOS one way to reach this this is at InDesign > Preferences > User Interface Scaling...
I never did figure out how to properly handle it in ExtendScript with ScriptUI. But I’m hoping that UXP provides something.
Questions:
Is there a way to read what the value is via JavaScript?
Is there some CSS way of responding to different settings?
1. Is there a way to read what the value is via JavaScript?
It seems there is no way to get it directly. In ExtendScript, Marc Autret shows how to get it by using the ScriptUI window. Indiscripts :: ScriptUI vs. UI Scaling
I was able to get it in UXP by executing that ExtendScript via doScript.