Front Window Screenshot Macro

Keyboard Maestro “Front Window Screenshot” Macro

Another macro i thought people might like. On macOS taking a screenshot of a window is a bit annoying. cmd+shift+4, then spacebar, then click the window.

This will take a screenshot of the frontmost window, it names the screen shot with the title of that window (plus the date).

I twiddle the window name with a regular expression to replace \ : or / with a -

Front Window Screenshot.kmmacros (3.5 KB)

5 Likes

Thanks for sharing!

Note, if you're using Sequoia, you will need to give "Screen & System Audio Recording" permissions to both Keyboard Maestro and Keyboard Maestro Engine in your Mac's Settings (Settings/Privacy & Security/Screen & System Audio Recording).

Because the Keyboard Maestro Engine app is buried inside the Keyboard Maestro app in your Applications folder, you'll need to do a Show Package Contents (control-click) on the Keyboard Maestro app. The engine app is inside the enclosed MacOS folder. Once you've revealed the app this way in Finder, you can add it to the settings panel.