Applescript 打开 URL 并每 5 秒刷新一次,无需打开新标签 [英] Applescript open URL and refresh every 5 seconds WITHOUT opening new tab

查看:56
本文介绍了Applescript 打开 URL 并每 5 秒刷新一次,无需打开新标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,这是我所拥有的,但我的问题是它每 5 秒后在新标签页中打开 url.

This is what I have so far but my problem is it opens the url in a new tab after every 5 seconds.

repeat
    delay 5
    tell application "Google Chrome"
        open location "https://www.google.com"
    end tell
end repeat

推荐答案

Chromium Suite 中有一个 reload 命令.

There is a reload command in the Chromium Suite.

示例:

tell application "Google Chrome"
    activate
    open location "https://www.google.com"
    repeat
        delay 5
        tell tab 1 of window 1 to reload
    end repeat
end tell

这篇关于Applescript 打开 URL 并每 5 秒刷新一次,无需打开新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆