Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AppleScript User Interface Scaling

Community Expert ,
Jan 30, 2025 Jan 30, 2025
Does anyone know how to control the UI Sizing slider in Preferences > User Interface Scaling via AppleScript? (And, if so, would you please show me how 😁?)
 
I have a need to toggle the user interface scaling between Small and Medium fairly frequently.
 
Screenshot 2025-01-30 at 10.58.11.png
 
TOPICS
Scripting
364
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 30, 2025 Jan 30, 2025

I got it working. Once I was reminded that Keyboard Maestro can not only move a mouse and click, but it can click and drag, I went with a Keyboard Maestro macro. Below is the macro that will make my usual Small setting Medium. I'll also create a toggle to go from Medium to Small UI Scaling if that's the current state, restarting InDesign between. (The second AppleScript InDesign activation is just for testing.)

 

Screenshot 2025-01-30 at 15.33.12.png

 

Translate
LEGEND ,
Jan 30, 2025 Jan 30, 2025

You can always execute JS script from within AS. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2025 Jan 30, 2025

I was thinking about that, too. Do you know A) if there's a way to control the UI Sizing via JavaScript, and B) how to do it? (And, C, could you please tell me?)

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 30, 2025 Jan 30, 2025

I was trying to find it on my phone - but no luck. Will have to do it on a laptop - will let you know if I'll find it. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2025 Jan 30, 2025

I don't see anything relevant in the AppleScript dictionary...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2025 Jan 30, 2025

I even tried programmically editing the preferences file on disk, but I can't find the setting for the UI scaling in there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jan 30, 2025 Jan 30, 2025

There is no difference in the preferences:

tell application id "com.adobe.indesign"

get properties of preferences

end tell

 

Looking from the plug-in side, the command is kSetUIScalingPrefsCmdBoss working on "InDesign Defaults".

As you have to restart InDesign anyway for "changes to take effect", I'd try the brutal approach and swap that file with differently scaled copies.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2025 Jan 30, 2025
LATEST

I got it working. Once I was reminded that Keyboard Maestro can not only move a mouse and click, but it can click and drag, I went with a Keyboard Maestro macro. Below is the macro that will make my usual Small setting Medium. I'll also create a toggle to go from Medium to Small UI Scaling if that's the current state, restarting InDesign between. (The second AppleScript InDesign activation is just for testing.)

 

Screenshot 2025-01-30 at 15.33.12.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines