[英]Mac keyboard from the command line
我正在编写bash脚本,并试图打开一个单独的终端窗口来运行命令。我能够使用open -a Terminal .
打开一个新的终端窗口open -a Terminal .
,但是可以从bash在Windows之间切换吗?
您可以使用命令osascript运行AppleScript脚本。
用于激活“终端”窗口的脚本:
tell application "Terminal" to activate
或打开新的终端窗口:
tell application "Terminal"
do script " "
activate
end tell
在这里找到-https: //superuser.com/questions/195633/applescript-to-open-a-new-terminal-window-in-current-space
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.