Simple Safari Applescript needed

blodwyn

macrumors 65816
Original poster
Jul 28, 2004
1,148
1
Portland, Oregon
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
 

blodwyn

macrumors 65816
Original poster
Jul 28, 2004
1,148
1
Portland, Oregon
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.
 
Comment

James Philp

macrumors 65816
Mar 5, 2005
1,494
0
Oxford/London
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"
 
Comment

Doctor Q

Administrator
Staff member
Sep 19, 2002
37,753
3,859
Los Angeles
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
 
Comment

Similar threads

  • hotwater2011
5
Replies
5
Views
316
  • MakeBetter
14
Replies
14
Views
2K
  • zoran
2
Replies
2
Views
488
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.