本文介绍了OSX bash最小化窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Mac上并使用bash shell,我想执行一个包含单个命令的文件(以启动Jupyter Lab),并立即最小化终端窗口.
In the Mac and using the bash shell, I want to execute a file that contains a single command (to start Jupyter Lab) and immediately minimize the terminal window.
有没有安装第三方软件的方法?
Is there a way to do this WITHOUT installing third party software?
推荐答案
是的,只需使用 osascript
和Applescript:
Yes, just use osascript
and Applescript:
osascript -e 'tell application "Terminal" to set visible of front window to false'
这篇关于OSX bash最小化窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!