HEscript Center Window

Is there an easy command to use to center the main window using HEscript? I am changing the window size during different parts of my application and I would like a way to automatically move to the center instead of manually moving left/top…Is there a way?

Also, is there a way to maximize without using the top maximize button, I would like to maximize my main window using HEscript.

Sorry if these are easy things, I searched through the docs but didn’t see anything. Loving the program!


Try this HEScript command:


Awesome, that worked for centering! How about maximizing the window using HEscript?

Thanks so much!