2011-08-10 138 views
3

使用AppleScript,我可以在CURRENT Safari窗口中打開URL(即不打開新窗口或標籤)?AppleScript Safari,在CURRENT窗口中打開URL

我想創建一個歷史記錄,以便我可以通過幾個網頁打開backarrow,但只打開一個窗口。

任何想法?

回答

6

當然,你可以:)

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

完美!加上一個簡短的延遲命令是我所需要的。 – John