How to check if window is maximized

I want to make a macro that checks if front window is maximized (window covers entire screen but is not full screen).

Currently it seems I can't do that and these are my options:


Is there a way to create such an if statement?

Just a quick reply without any testing.
Maybe you could check screensize-menubar vs. windowsize.

We need AppleScript to determine that.
Here's the script in a Macro with an KM IF test, as an example to get you started.


MACRO:   Determine IF FrontMost Window is MAXimized [Example] @AS

~~~ VER: 1.0    2018-08-11 ~~~


Determine IF FrontMost Window is MAXimized [Example] @AS.kmmacros (5.0 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


1 Like

I believe we can do this without AppleScript (although AppleScripting a solution is never going to get an argument from me):

Test If Front Window Is Maximised.kmmacros (19.5 KB)