自动扫描/循环浏览Safari选项卡?


10

我在电视上安装了Mac mini,以监控我们的网络。我想在一组选项卡中设置我们要查看的监视页面,并让safari自动在它们之间循环。像加油站用来更改视频馈送的方式;某种自动切换器。

我看过glims,但它似乎没有功能。有没有办法使用基本野生动物园执行此操作,或者没有人知道在Safari中会执行此操作的插件?


是否有是Safari浏览器?有一个Chrome插件可以做到这一点。
— 弗拉德2012年

我知道Chrome和Firefox都具有可解决此问题的扩展程序,但我很好奇Safari是否具有本机功能。
— Peter Grace 2012年

您当然可以在Applescript中做到这一点。对象层次结构非常简单-应用程序-Windows(Window)-制表符(Tab)
— Stu Wilson

Answers:


18

您可以使用此AppleScript块来循环浏览窗口上的选项卡:

tell application "Safari"
    repeat
        repeat with i from (count of tabs of window 1) to 1 by -1
            set thisTab to tab i of window 1
            set current tab of window 1 to thisTab
            delay 1
        end repeat
    end repeat
end tell

这将遍历所有选项卡,并每1秒钟切换一次。只需更改延迟即可更改每个选项卡切换之前的时间。


使用内置的AppleScript编辑器来编写,保存和运行它。精美,thanx!
— 2016年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.