【问题标题】:AppleScript Safari, open URL in CURRENT windowAppleScript Safari,在当前窗口中打开 URL
【发布时间】:2011-08-10 18:30:15
【问题描述】:

使用 AppleScript,我可以在 CURRENT Safari 窗口中打开 URL(即不打开新窗口或标签)吗?

我想创建一个历史记录,这样我就可以通过几个网页点击后退箭头,但只打开一个窗口。

有什么想法吗?

【问题讨论】:

    标签: safari applescript


    【解决方案1】:

    当然可以:)

    tell application "Safari" to set the URL of the front document to "whateverURLYouWant"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-29
      • 1970-01-01
      相关资源
      最近更新 更多