Auto Refresh Safari Page In All Tabs
Previously I had made a script that reloads the front Safari window every so many seconds.
Well now I have a script that will reload all tabs in Safari, the catch is that it only works with the new Safari 3 beta. The reason it only works with Safari 3 is that Apple added some AppleScript functionality for manipulating tabs, thank you Apple!

I love the Auto Refresh All Safari tabs. Have been looking for this for 2 years. Thanks!
downloaded file and tried to run script but got an error on the “win” line of code. any suggestions?
cheers,
MacDeviant
MacDeviant,
Do you mean this line: set this_win to (window i)?
Did you try re-downloading the file, maybe it got corrupted.
Also what version of OS X and Safari are you running?
I have tested it on OS X 10.4.9 with Safari 3.0.1 and 10.4.10 with Safari 3.0.2
Sean
Sean,
Yes, that is the line I was talking about. I will re-download the file and try it again. Thank you for the quick response.
cheers,
MacDeviant
Sean,
This is the error I get after I click on “Run” “count of tabs in this_win”. Any suggestions? I re-downloaded the file as you suggested, then double-click it in PathFinder and it brought up what I think is the console?
cheers,
MacDeviant
MacDeviant,
Can you tell me the following info so maybe I can help you out:
- Mac OS X version (PPC or Intel)
- Safari version
- Do you have any special Safari extension programs installed
- How many Safari windows are open
- How many tabs in each Safari window
Sean
Sean,
Here is the information you requested:
Hope this information helps.
MacDeviant
Sean
MacDeviant,
Well the problem is you have to have a Safari window open for this script to do anything. The script acts just like clicking the reload page button in ever Safari window for every tab.
Sean
Sean,
Thanks, I will make sure one or more windows are loaded when Safari opens. I will get back to you on whether or not the script ran correctly.
MacDeviant
Sean. This is genius. Thank you!
I have 2 questions regarding the auto refresh.
Is it possible to have the tabs refresh at different times? For example, If I have 2 tabs open, can I have 1 refresh at, say, 5 seconds, and the other refresh at 10?
I know that’s a strange request, but would be very useful for my particular situation.
I have 2 domain names that redirect to another page. Currently, with refresh running, it reloads the redirect. Is it possible to have it reload the domain name every time, as opposed to the redirect page?
thanks again!
brett
Brett,
Thanks for the support.
I am sure it is possible to do, the question is do I want to spend the time doing it. Right now I am leaning towards not spending the time doing it.
Again I am sure it is possible and I have even thought how I would go about doing it. The problem is, is it worth my time at this point.
If you really want it and are willing to pay email me at sean*m*long at gmail.com (replace the * with . and the ‘ at ‘ with @)
Sean
I seem to have the same problem as MacDeviant. “Safari got an error: NSOperationNotSupportedForKeyScriptError”
It is with the same line of “count of tabs in this_win”.
Running 3.02 safari and 10.4.9 os X Intel
Ditto
Have 5 tabs open in one window, and the script will run if I manually tell it to, but it does not auto-run.
Same error as above post if I try to run it as an application.
Safari 3.0.3 and 10.4.10
Hello,
Thanks for making this, unfortunatetly it won’t work for me!
I get the message: Safari got an error: NSOperationNotSupportedForKeyScriptError when I run it.
Any ideas?
And how do I make this run automatically when I open Safari?
THanks!
PS I’m running the same versions as Iris
Disregard my questions, the updated version works perfectly!
Thanks!
I seem to have the same problem as MacDeviant. “Safari got an error: NSOperationNotSupportedForKeyScriptError”
It is with the same line of “count of tabs in this_win”.
Running 3.03 safari and 10.4.10 os X PPC
please help
how do i get the script activated and running w/ safari?