如何使用mac快捷键打开终端
生活随笔
收集整理的這篇文章主要介紹了
如何使用mac快捷键打开终端
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在mac中,有時候如果需要頻繁的調用終端,即使是放在里欄目中固定,其實也有點覺得打開好累(對就是這么懶),如果通過快捷鍵我在任何時候想打開就打開是最好的。所以搜集資料整理了一哈,有需要的可以looklook
來人,給朕把圖抬上來
1 找到mac內置的【自動操作】程序,對,就是扛著火箭筒的那個家伙
2 打開后選擇快速操作
3 右邊窗口找到【工作流程收到】,選擇沒有輸入
4 左邊菜單搜索【AppleScript】,將以下腳本粘貼
on run {input, parameters}
(* Your script goes here *)
tell application "Terminal"
reopen
activate
activate
end tell
end run
5 保存,取名為【 open terminal】
6 打開【系統偏好設置】,選擇鍵盤,選擇快捷鍵,左側選擇服務,右側找到【通用】下剛剛自定義的名稱【open terminal】,然后設置你需要的快捷鍵即可。最后按下剛設置的快捷鍵,快樂來了~~
其他腳本
任意位置打開終端腳本
on run {input, parameters}
(* Your script goes here *)
tell application "Terminal"
reopen
activate
activate
end tell
end run
當前文件夾打開終端腳本
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
參考文章
參考了人家的文章就要貼出來,如下:
https://segmentfault.com/a/1190000022225906
https://blog.csdn.net/weixin_44672591/article/details/105018673
總結
以上是生活随笔為你收集整理的如何使用mac快捷键打开终端的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows 7 封装篇(一)【母盘定
- 下一篇: 微信小程序分享之生成海报--canvas