AppleScript Safari,在CURRENT窗口中打开URL

时间:2011-08-10 18:30:15

标签: safari applescript

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

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

有什么想法吗?

1 个答案:

答案 0 :(得分:7)

当然可以:)

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