Home » Questions » Computers [ Ask a new question ]

How to have a timer driven "reload" of a tab in Mac OS X Safari 4?

How to have a timer driven "reload" of a tab in Mac OS X Safari 4?

Is there a way to have safari 4 on Mac OS X to reload a web page every N minutes on a per tab basis?

Asked by: Guest | Views: 347
Total answers/comments: 1
bert [Entry]

"You can use an AppleScript to do this. Here’s how to reload every open tab every 5 seconds:

tell application ""Safari""
repeat
repeat with aTab in (every tab of every window)
set URL of aTab to (URL of aTab)
end repeat
delay 5
end repeat
end tell

You can do some filtering inside the repeat with aTab block to only refresh certain tabs (predicated on the URL, title, etc.)."