設置全局快捷鍵,直接打開Chrome的google頁面搜索 on Mac OS X

Automator Service, AppleScript 真乃神器也!

設置全局快捷鍵,直接打開Chrome的google搜索頁面。

兩步走

  • 添加新服務的AppleScript
  • 設置快捷鍵

1. 添加新服務的AppleScript

  • 打開Automator,
  • 選擇⚙️圖標的快速操作
  • 選擇運行AppleScript
  • 添加script如下並保存(比如保存名爲Search with Google
tell application "Google Chrome"
    open location "https://www.google.com"
end tell

2. 設置快捷鍵

系統偏好設置-鍵盤-快捷鍵給此服務(剛剛添加的Search with Google)設置快捷鍵。

同理,想設置其它應用的快捷鍵也可以如此順滑~


參考:

  1. Global keyboard shortcut to open a tab in Chrome on Mac OS X

  2. AppleScript 入門:探索 macOS 自動化

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章