bash - OSX bash 最小化窗口

标签 bash macos shell command

在 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/

相关文章:

bash - 哈希冒号 (# :) mean as first line of shell script?

linux - bash 空变量命令替换导致单引号

linux - Shellscript逐行复制文件到新文件并每50行添加一行

macos - "failed to load window nib file"是什么意思?

macos - Yesod 二进制不可用

Linux:非法选项读取-a

json - 在 shell 脚本中验证 JSON 文件语法,无需安装任何包

linux - 如何计算目录中的文件数并在 if 语句中进行测试?

macos - 对 Apple Silicon 的 SSE/neon 支持

bash - shell中实时去除回车