Looping through each Chrome tab and taking a screenshot of that tab

Hi there,

Does anybody know how I could create a Keyboard Maestro macro that would automatically loop through all of my open Chrome tabs (in my frontmost browser window), and then take a screenshot of each tab when the new tab comes to the front?

So, for example, if I have 10 open tabs in Chrome's frontmost window, I'd like 10 screenshots to be taken — one for each of the 10 tabs.

I can set Keyboard Maestro to automatically take a screenshot of the frontmost window, but I can't figure out how to get it loop through all of the open tabs.

Thank you for any guidance that you can provide! :slight_smile:

Best,
Scott

Try checking this post. It may have a solution:

How about this demonstration macro I knocked up for you?

I tested this with Safari (by changing the red-coloured action) but it should work as-is with Chrome.

The browser tab screenshot files are saved to the Downloads folder with names as specified in the purple-coloured action, so change that to suit your needs.

Let us know how you get on!

Download Macro(s): Test Looping Through Browser Tabs.kmmacros (5.1 KB)

Macro-Image

Keyboard Maestro Export

Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.
System Information
  • macOS 13.6.1
  • Keyboard Maestro v11.0.3