標籤:ble mat 鍵盤 ima osx .com http 開啟 ica
Frank Pu
連結:https://www.zhihu.com/question/20692634/answer/37152883
來源:知乎
著作權歸作者所有,轉載請聯絡作者獲得授權。
來至 Mac OS X: Launch Terminal from keyboard shortcut
os x 上很多功能都可以通過Apple自家的Automator.app建立,且使用此方法可以為任何的程式建立快速鍵。
1.第一步 開啟 Automator.app
<img src="https://pic4.zhimg.com/cbc10c7d1c3fd7bcf1544d15a15f2877_b.jpg" data-rawwidth="426" data-rawheight="344" class="origin_image zh-lightbox-thumb" width="426" data-original="https://pic4.zhimg.com/cbc10c7d1c3fd7bcf1544d15a15f2877_r.jpg">
2. 選擇 建立,然後選擇 服務
<img src="https://pic3.zhimg.com/87f3f03b3f8d111be6f299e0116ac852_b.jpg" data-rawwidth="994" data-rawheight="570" class="origin_image zh-lightbox-thumb" width="994" data-original="https://pic3.zhimg.com/87f3f03b3f8d111be6f299e0116ac852_r.jpg">
3.服務收到 選擇為 沒有輸入
<img src="https://pic2.zhimg.com/70f26eef1fb5d984d9ee9e5b870087e9_b.jpg" data-rawwidth="1046" data-rawheight="192" class="origin_image zh-lightbox-thumb" width="1046" data-original="https://pic2.zhimg.com/70f26eef1fb5d984d9ee9e5b870087e9_r.jpg">
然後在左邊側欄中雙擊 Run AppleScript
<img src="https://pic1.zhimg.com/bb4eb7a24efc60d54457dfa516f5286c_b.jpg" data-rawwidth="576" data-rawheight="950" class="origin_image zh-lightbox-thumb" width="576" data-original="https://pic1.zhimg.com/bb4eb7a24efc60d54457dfa516f5286c_r.jpg">4.在編輯區輸入4.在編輯區輸入
<img src="https://pic2.zhimg.com/3429fe36a4c31814da61d7383f50ecc1_b.jpg" data-rawwidth="742" data-rawheight="490" class="origin_image zh-lightbox-thumb" width="742" data-original="https://pic2.zhimg.com/3429fe36a4c31814da61d7383f50ecc1_r.jpg">
這樣 AppleScript 就寫好了,並將其儲存為 Open Terminal
只需將指令碼中的 tell application "Terminal" 中的 "Terminal" 改為其他的程式名,就可以為其它的程式建立快速鍵
5.設定快速鍵
<img src="https://pic1.zhimg.com/f76345f2a9e36f042203aa9a9e708b58_b.jpg" data-rawwidth="1236" data-rawheight="690" class="origin_image zh-lightbox-thumb" width="1236" data-original="https://pic1.zhimg.com/f76345f2a9e36f042203aa9a9e708b58_r.jpg">在鍵盤快速鍵設定的左側欄中選中 服務 ,可以看到Open Terminal ,然後完成快速鍵的設定。在鍵盤快速鍵設定的左側欄中選中 服務 ,可以看到Open Terminal ,然後完成快速鍵的設定。
我的快速鍵還是設定成我在Ubuntu中熟悉的alt + contrl +T。
【轉】OS X 中快速調出終端