OSX bash最小化窗口 [英] OSX bash minimize window

查看:108
本文介绍了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最小化窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆