Safari 上的 ReloadEvery

Safari 上的 ReloadEvery

Firefox 上有一个名为每次重新加载可以让你以一定的时间间隔刷新页面。Safari 有类似的功能吗?

答案1

http://atbash.net/blog/archives/000135.html

-- the applescript only calls attention to itself when the idle period is up
on idle

    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}
            end tell
        end tell

    --sets the idle period in seconds.
    --i.e. safari will refresh every 10 seconds
    return 10

end idle

如果脚本对你来说有点太高级(你确实买了一台 Mac),可以尝试页面重启

答案2

是的!他们终于为它开发出了 Safari 5 扩展!

你可以在这里得到它:Safari 5 的自动重新加载

请记住,它只适用于 Safari 5。

答案3

脚本启动时选择的文档:

tell application "Safari"
    set doc to document 1
    repeat while true
        tell doc to set URL to (get URL)
        delay 10
    end repeat
end tell

所有标签:

tell application "Safari"
    repeat while true
        repeat with t in tabs of windows
            tell t to set URL to (get URL)
        end repeat
        delay 10
    end repeat
end tell

相关内容