Compute ratio of screen size

I am working on a macro that will launch an application and resize/reposition the window.

Sometimes I will be working on my MacBook Pro with the 2800x1800 (or whatever) screen, and sometimes I’ll be on my desktop monitor with a 1920x1280 screen. I need to compute the window HEIGHT and position as a ratio of the current screen size (but the WIDTH should be left alone).

I read some about the SCREEN function and got it to work a bit, but where I am stuck is the fact that I don’t want to change the window width. Is there a resize action that leaves the width alone, or some way to specify “leave alone” in the resize action?

Hey Mike

See if this doesn't give you a push in the right direction.

-Chris


Window to Screen Ratio.kmmacros (2.5 KB)