在 Mac 中并使用 bash shell,我想执行一个包含单个命令(启动 Jupyter Lab)的文件并立即最小化终端窗口。
有没有办法在不安装第三方软件的情况下做到这一点?
最佳答案
是的,只需使用 osascript
和苹果脚本:
osascript -e 'tell application "Terminal" to set visible of front window to false'
关于bash - OSX bash 最小化窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52020528/