Is there a way to set safari to auto refresh?

Discussion in 'macOS' started by MattyMac, Oct 20, 2006.

  1. MattyMac macrumors 68000

    MattyMac

    Joined:
    Oct 6, 2005
    Location:
    NJ/NYC
    #1
    I want to auto refresh a webpage, is there a way to set safari to do it?
     
  2. WildCowboy Administrator/Editor

    WildCowboy

    Staff Member

    Joined:
    Jan 20, 2005
    #2
    You can write an AppleScript with something like this:

    Code:
    repeat	
    	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}
    			delay 60
    		end tell
    	end tell
    end repeat
    Or you could use Opera, which has this built into the contextual menu.
     
  3. MattyMac thread starter macrumors 68000

    MattyMac

    Joined:
    Oct 6, 2005
    Location:
    NJ/NYC
    #3
    Seems a bit too complicated for me to mess with.:eek:
     
  4. WildCowboy Administrator/Editor

    WildCowboy

    Staff Member

    Joined:
    Jan 20, 2005
    #4
    Meh...it's not so bad once you sit down and think about what it's doing.

    But yes, Opera can do this very easily...a simple right click on the page to turn on auto refresh, and then set the delay.
     

Share This Page