MacOS终端设置脚本
有没有办法自动设置MacOS终端窗口 它应该打开几个选项卡,重命名其中的一些选项卡,转换到文件夹,启动其他脚本(例如mongod)等等。可能是这样的:MacOS终端设置脚本,macos,terminal,automation,Macos,Terminal,Automation,有没有办法自动设置MacOS终端窗口 它应该打开几个选项卡,重命名其中的一些选项卡,转换到文件夹,启动其他脚本(例如mongod)等等。可能是这样的: #!/bin/bash osascript<<EOF tell application "Terminal" set newTab1 to do script "cd /etc && ls && echo && echo I am in /etc and in Ocean sty
#!/bin/bash
osascript<<EOF
tell application "Terminal"
set newTab1 to do script "cd /etc && ls && echo && echo I am in /etc and in Ocean style"
set current settings of newTab1 to settings set "Ocean"
set newTab2 to do script "cd $HOME/Desktop && ls && echo && echo I am on your Desktop and in Man Page style"
set current settings of newTab2 to settings set "Man Page"
end tell
#/bin/bash
osascriptStart终端
并打开一些新窗口,然后转到窗口->将窗口另存为组