我可以创建一个(非常)简单的applescript应用程序来运行Firefox后台并退出.(原因是我有不同的工作和家庭档案).我的脚本基本上是:
做shell脚本"/Applications/firefox.app/Contents/MacOS/firefox -no-remote -P'Personal'&"
它可以工作,但在退出Firefox之前,脚本/应用程序不会退出.我该如何解决这个问题?
Chr*_*sen 12
你需要在某处重定向stdout和stderr.该做的shell脚本命令都知道,它安装了该程序的输出和错误管道仍然是开放的,所以等待它们被关闭.
do shell script "/Applications/firefox.app/Contents/MacOS/firefox -no-remote -P 'Personal' > /dev/null 2>&1 &"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2543 次 |
| 最近记录: |