I have a mac mini setup on a tv to monitor our network. I'd like to setup the monitoring pages we'd like to view in a set of tabs and have safari automatically cycle through them. Something like how gas stations use to change video feeds; some sort of auto-switcher.

I looked at glims but it doesn't appear to have the functionality. Is there a way to do this with base safari or does anyone know of a plugin that will do this behavior in Safari?

  • Does it have to be Safari? There's a plugin for Chrome which does this. – Vlad Feb 6 '12 at 14:29
  • I am aware that Chrome and Firefox both have extensions that will handle this, but I was curious if Safari had the ability natively. – Peter Grace Feb 6 '12 at 16:16
  • You can certainly do it in Applescript The object hierarchy is very simple - Application - Windows (Window) - Tabs (Tab) – Stu Wilson Feb 6 '12 at 21:26

You can use this block of AppleScript to loop through your tabs on a window:

tell application "Safari"
        repeat with i from (count of tabs of window 1) to 1 by -1
            set thisTab to tab i of window 1
            set current tab of window 1 to thisTab
            delay 1
        end repeat
    end repeat
end tell

This will go through all your tabs and switch every 1 second. Just change the delay to change the time before each tab switches.

  • Use built-in AppleScript Editor to write, save and run it. Works beautifully, thanx! – JOM Apr 1 '16 at 9:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .