使用 AppleScript 在新的 Safari 选项卡中打开 URL
问题描述:
是否可以使用 AppleScript 在 Safari 的新标签页中打开链接?
Is it possible to use AppleScript to open a link in a new tab in Safari?
答
这会起作用:
tell application "Safari"
tell window 1
set current tab to (make new tab with properties {URL:"http://www.stackoverflow.com"})
end tell
end tell