同时打开多个网页

代码如下

tell application "Google Chrome"
    activate
    open location "http:www.baidu.com"
    open location "https://segmentfault.com/q/1010000000470906"
end tell

接受用户输入然后打开

tell application "Safari"
set input to display dialog "please input " default answer "" buttons {"ok", "cancel"}
set input1 to text returned of input
activate
open location "https://www.zhihu.com/search?type=question&q=" & input1 as string
end tell

你可能感兴趣的:(同时打开多个网页)