Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blodwyn

macrumors 65816
Original poster
I could really use an Applescript that reloads the current page in Safari every 60 seconds.

Background is that I will have a browser window open to our company's support page which displays new support requests. I just need a way of auto-refreshing the page every 60 seconds so I can see if any new requests have come in. I figure an Applescript could do the job, but any other suggestions welcome.

Thanks in advance for any help with the script
 
Just train a monkey to type Apple-R everytime a stopwatch beeps!


kidding. You could wait for automator on Tiger..

that is the easy way out (in a couple of weeks)

kyle
 
jackieonasses said:
Just train a monkey to type Apple-R everytime a stopwatch beeps!

kidding. You could wait for automator on Tiger..

that is the easy way out (in a couple of weeks)

kyle

Not sure if I want the upkeep of a monkey, but I've pre-ordered Tiger so I could wait. It sounds like it should be a simple script, so if anyone can post one, that would be great.
 
I know it can be done.. and easily. I just don't know Applescript at all...


I know hexmonkey can help you.. if no one gives an answer pm him.

kyle
 
tell safari.app
reload page=http:xxxxxxx.xxxxx.xxxx
end tell
Wait 60
Repeat


No, not really! Sorry! But it will be something like that! I tried looking up the safari scripts dictionary, but I can't find anything!

Try looking in your AppleScript>Examples folder for inspiration!
Try googling also like "safari scripts"
 
This is my attempt.

Code:
tell application "Safari"
	activate
	repeat while true
		do JavaScript "history.go(0)" in document 1
		delay 60
	end repeat
end tell
 
Thanks to Jackieonassis and Doctor Q, both suggested scripts work great.

Much appreciated
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.