Open URL in new Safari tab with AppleScript

前端 未结 12 1739
挽巷
挽巷 2020-12-13 12:43

Is it possible to use AppleScript to open a link in a new tab in Safari?

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 13:29

    This will work:

    tell application "Safari"
        tell window 1
            set current tab to (make new tab with properties {URL:"http://www.stackoverflow.com"})
        end tell
    end tell
    

提交回复
热议问题