Resize all browser windows- not just front window

Hey! I have a macro going that resizes all my windows when I attached a second monitor. With most apps, the "front window" does it all. But with an app like Chrome, I can only get KM to resize the front window. Is there a way to have KM resize all open windows in an application?

Currently using:

Hey Sean,

Personally I'm always going to turn to AppleScript for jobs like this when an application is properly scriptable – as Chrome is in this case.

Resize Windows in Google Chrome with AppleScript.kmmacros (5.9 KB)

This is faster and more “organic”, since it's working with the app rather than on the app.

That said – the job is not too hard with pure Keyboard Maestro actions – it's just not quite obvious.

Resize Windows in Google Chrome with Keyboard Maestro.kmmacros (7.1 KB)


1 Like

Thanks Chris! The Applescript version worked flawlessly.

1 Like