且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用单个 bash 行在多个终端窗口中运行多个命令

更新时间:2023-11-21 21:01:46

您正在运行的实际脚本是什么

what are the actual scripts you are running

我稍微修改了你的代码来测试它

I modified your code alittle to test it

osascript -e 'tell application "Terminal" to do script "cd Desktop"'; osascript -e 'tell application "Terminal" to do script "cd .."'; osascript -e 'tell application "Terminal" to do script "ls"';

这似乎工作正常