
我当前的代码涉及一个“Watch Me Do”块,用于记录击键⌘ W然后打开新 URL,但这有点笨拙。我有没有办法使用 Automator 在当前选项卡中打开 URL?AppleScript 也可以接受。
(这个问题对于 Stack Overflow 来说是否太基础了?)
答案1
tell application "Safari" to set the URL of the current tab of the front document to "whateverURLYouWant.com"