Script help for chrome, send escape key to all tabs (stop loading all tabs)

Often I click many tabs at once and they start to load but my laptop is old, so it heats up and it gets sluggish, I know escape key will stop active tab, and I can cycle through and do that but it's annoying that way.

Any possible way to send escape key to all open tabs to stop all loading activity, "tell google chrome" etc, (sorry don't know applescript).

Maybe it's easy maybe it's hard I'm not sure, any help appreciated for the script part of the macro.


I think the main thing you need to so is put these two KM actions in a loop:



The loop will need to refer to this variable ("NoTabs") as its counter:

So putting these three actions together, I think, should do it. As always, my accuracy is only 80% so there's a small chance I'm wrong. But try it out.

thank you much for reply, it's late here, I will try tomorrow and let you know.

It's late here too, which is why I didn't put them together. :yawning_face:

Hey @Lon_Ron,

This seems to work for Google Chrome.


# Auth: Christopher Stone
# dCre: 2021/12/14 04:41
# dMod: 2021/12/14 04:41 
# Appl: Google Chrome
# Task: Stop Tabs from Loading
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Google_Chrome, @Stop, @Tabs, @Loading

tell application "Google Chrome"
   tell every tab of every window to stop
end tell

1 Like

thanks @ccstone works great, love this forum.

1 Like