【发布时间】:2017-04-08 13:33:10
【问题描述】:
如果我去cd /Applications/Firefox.app/Contents/MacOS然后运行./firefox -new-window http://google.com它会打开一个新版本的firefox,所以我必须同时打开,这不是我想要的,我想要它在打开的firefox程序中。然后我尝试使用open 它可以打开新标签,但我无法打开新窗口。如果我运行 open -a firefox -new-window http://google.com 它会给出一个错误,即 -new-window 不是现有参数。
所以然后我尝试了open -a firefox --args -new-window http://google.com,但什么也没发生,它只是将应用程序的焦点转移到了 Firefox。如果我运行open -a firefox --args http://google.com
什么也没有发生。当open -a firefox --args -url http://google.com 不起作用时。
我看过的资源
https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options
https://superuser.com/questions/277565/start-firefox-from-terminal-on-mac-os-x-snow-leopard
【问题讨论】: