[英]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.