Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer

up vote 9 down vote accepted

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

tell application "Safari"
    repeat
        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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.