OS x Set shortcut key launcher

Source: Internet
Author: User

Many of the features on OS X can be created from Apple's own Automator.app, and you can use this method to create shortcuts for any program.
1. First Step open 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. Select New, then select Service

<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. Service received selected for no input
<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 ">
Then double-click Run AppleScript in the left sidebar
<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. Enter in edit area 4. Enter in edit area

<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 ">
So the AppleScript is written and saved as Open Terminal
Simply change the "Terminal" in the Tell Application "Terminal" in the script to another program name, and you can set up shortcut keys for other programs.
5. Set shortcut keys
<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 > Select the service in the left column of the keyboard shortcut settings, you can see the open Terminal, and then finish setting the shortcut keys. Select the service in the left column of the keyboard shortcut settings, you can see the open Terminal, and then complete the shortcut key settings.
My shortcut is still set to my familiar ALT + Contrl +t in Ubuntu.

OS x Set shortcut key launcher

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.