AppleScript Safari,在CURRENT窗口中打开URL

Joh*_*ohn 4 safari applescript

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

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

有任何想法吗?

fir*_*w52 9

你当然可以 :)

tell application "Safari" to set the URL of the front document to "whateverURLYouWant"
Run Code Online (Sandbox Code Playgroud)