關於M1 Mac如何設定開啟終端的快捷鍵
阿新 • • 發佈:2021-06-11
在啟動臺中找到自動操作並開啟
選擇快速操作
將“工作流程收到”設定為“沒有輸入”;然後將左側的“執行AppleScript”拖到右側
在右側程式碼處替換如下的程式碼
該程式碼是在桌面開啟終端,所處的路徑是 ~
on run {input, parameters}
(* Your script goes here *)
tell application "Terminal"
reopen
end tell
end run
可以點選執行開是否能執行成功,之後“command+s”儲存並命名為open terminal
提供第二種開啟方式,可在任意位置開啟終端
on run {input, parameters} tell application "Finder" set myWin to window 1 set thePath to (quoted form of POSIX path of (target of myWin as alias)) if application "Terminal" is running then tell application "Terminal" do script "cd " & thePath activate end tell else tell application "Terminal" do script "cd " & thePath in window 1 activate end tell end if end tell end run
儲存後可命名為open terminal here
之後開啟 系統偏好——>鍵盤——>快捷鍵
在左側選擇服務,右側通用處找到剛剛命名的兩個檔案,然後設定喜歡的快捷鍵即可
2021-06-1116:33:06