Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Firefox there is an add-on called ReloadEvery that lets you refresh a page on a certain interval. Is there anything like that for Safari?

share|improve this question

http://atbash.net/blog/archives/000135.html

-- the applescript only calls attention to itself when the idle period is up
on idle

    tell application "Safari"
    --confirms your browser is the front application
        activate
    end tell

    tell application "System Events"
        tell process "Safari"
            keystroke "r" using {command down}
            end tell
        end tell

    --sets the idle period in seconds.
    --i.e. safari will refresh every 10 seconds
    return 10

end idle

If scripting is a bit too advanced for you (you did buy a Mac), try PageReboot.

share|improve this answer
    
Ha ha, It's not to advanced at all, I do it all the time :). – Wuffers Jun 6 '10 at 12:36
    
And the key stroke only works for the frontmost tab, right? I want it to work for one in the background. – Wuffers Jun 6 '10 at 12:37
    
What is wrong with PageReboot? – ta.speot.is Jun 7 '10 at 3:29
    
PageReboot doesn't work with SO or SU :( – Wuffers Jun 8 '10 at 0:20
up vote 1 down vote accepted

Yes! Finally they came up with a Safari 5 extension for it!

You can get it here: Auto Reload for Safari 5

Remember, it will only work with Safari 5.

share|improve this answer

Document selected when the script is started:

tell application "Safari"
    set doc to document 1
    repeat while true
        tell doc to set URL to (get URL)
        delay 10
    end repeat
end tell

All tabs:

tell application "Safari"
    repeat while true
        repeat with t in tabs of windows
            tell t to set URL to (get URL)
        end repeat
        delay 10
    end repeat
end tell
share|improve this answer

You must log in to answer this question.

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