Reload all Safari Tabs?

Hey Dan,

Yep.  :sunglasses:

-Chris

--------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2011/08/09 20:33
# dMod: 2015/11/14 16:46
# Appl: Safari
# Task: Reload Every Tab in front window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Safari, @Reload, @Tabs, @Front, @Window
--------------------------------------------------------------------------------

tell application "Safari"
   
   set tabList to tabs of front window
   
   repeat with ndx1 in tabList
      tell ndx1 to do JavaScript "location.reload(true)"
   end repeat
   
end tell

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2011/08/09 20:33
# dMod: 2011/08/09 20:57
# Appl: Safari
# Task: Reload Every Tab in Every Window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Reload, @Tabs, @Every, @Window
--------------------------------------------------------------------------------

tell application "Safari"
   
   set tabList to tabs of (windows where its document is not missing value)
   
   repeat with ndx1 in tabList
      repeat with ndx2 in ndx1
         tell (ndx2's contents)
            do JavaScript "location.reload(true)"
         end tell
      end repeat
   end repeat
   
end tell

--------------------------------------------------------------------------------
2 Likes