首页 > 其他分享 >mac global hotkey

mac global hotkey

时间:2023-04-04 18:55:58浏览次数:58  
标签:Automator global shortcut click application mac launch hotkey your

https://www.computerhope.com/issues/ch002051.htm

In macOS, there are many ways to launch an application. You can click an icon in the Dock or the Launchpad, or type the name of the app in the Spotlight search box. However, in macOS, there is no built-in way to launch an application by pressing a keyboard shortcut.

Using the macOS Automator, you can create a custom service to launch the application of your choice, and bind a keyboard shortcut to it. When you press the keyboard shortcut, the chosen application launches automatically.

Follow the steps below to configure a keyboard shortcut to launch an application in macOS 10.15 Catalina.

Create an Automator service

First, create an Automator service to launch your app.

1

In the macOS Finder, open the Applications folder. Double-click Automator.

2

If this is the first time you are running Automator, your Automator documents open in a Finder window. Click the New Document button, or double-click the New Document icon.

3

Click the Quick Action document type, then click Choose.

In the Workflow receives current drop-down menu, select no input.

5

On the left is a list of Actions from your Actions Library. Scroll down to Launch Application. Drag this action from the list and drop it in the gray area of the window, as indicated.

6

The new action appears on the right, outlined in blue.

7

In the Launch Application drop-down menu, select the application you want to launch. If your app is not listed, choose "Other" to locate it manually. In this example, we have chosen the terminal application iTerm.

8

Configuration is complete. Open the File menu and choose Save.

9

Type a name for your quick action and click Save.

Close the Automator window.

10

Open the Apple menu and choose System Preferences.

11

Click Keyboard.

12

Click Shortcuts. On the left, click Services. Scroll down to the service you created, and click to select it. Click Add Shortcut.

13

A text box opens. Press the desired key combination for your shortcut. In this example, we've held down Command and pressed the backslash key .

You can choose any combination of Command, Shift, Option/Alt, and the alphanumeric keys. If your chosen shortcut conflicts with an existing shortcut, you will be alerted.

Choose a keyboard shortcut that you do not use in any other application. If you're running another application that uses the same shortcut, your custom shortcut will not work.

14

Close the System Preferences. When you press the key combination, your app launches. If your app is already running in the background when you press the shortcut, it comes to the foreground of your other applications.

标签:Automator,global,shortcut,click,application,mac,launch,hotkey,your
From: https://www.cnblogs.com/Searchor/p/17287627.html

相关文章

  • Mac OS 安装/卸载 Homebrew
    背景介绍:https://brew.sh/index_zh-cnmacOS(或Linux)缺失的软件包的管理器Homebrew能干什么?使用Homebrew安装Apple(或您的Linux系统)没有预装但你需要的东西。Homebrew会将软件包安装到独立目录,并将其文件软链接至 /opt/homebrew 。Homebrew不会将文件安装到它本身......
  • centos网卡改名,并绑定mac地址
     当前系统:anolis8.4适用范围:网卡配置文件在etc/sysconfig/network-scripts/下的操作系统背景:由于未知原因,安装完操作系统后,发现同一网卡两个网口的网卡名不一致,集群的业务软件需要统一网卡名现象:如下图示,mac地址一致,明显是同一网卡的两个网口,而两个口的网卡名命名格式不一致......
  • 43、K8S-网络机制之网络策略、流量管控、NetworkPolicy、GlobalNetworkPolicy
    Kubernetes学习目录1、基础知识1.1、k8s策略1.1.1、想象中的策略到现在为止,我们之前操作过的k8s资源对象中,跟策略相关的无非就是权限认证-权限认证主要是与用户登录和资源使用有关系命名空间-命名空间可以将我们相关的资源进行隔离,但是我们可以通过"命名空间.资源对象......
  • 【AutoHotkey】笔记本键盘没有Home键和End键的解决方案
    problem笔记本键盘没有小键盘,所以少了Home键,End键等一系列键。编辑文本的时候就十分不方便solution可以创建键盘快捷键(键盘映射)(找一组平时用不到的热键)把ctrl+[映射为Home把ctrl+]映射为Endcodes软件可以用Autohotkey,配置code.ahk如下(拖入下载的软件即可运行)^[::Home^]::End#......
  • 用Mac学英语
    1、翻译Mac,IOS自带词典功能(选中单词左键长按,词典会翻译他)2、语音Mac有语音功能。(选中单词,按照opt+esc,会读出她。......
  • Mac - 查找并删除大文件(其他项占用过多解决方案)
    Mac存储空间中「其他」项占用非常大,通过工具来查看文件并清除大文件。工具名称:OmniDiskSweeper官网下载地址OSX里面的Other就是所有其他的文件。所有的文档,包括.pdf.doc.psd所有的压缩文件和磁盘映像包括.zip.dmg.iso所有的用户数据所有的系统文件包括Sy......
  • ssh改黑裙sn和mac
    登录是黑裙的账户密码提权【密码均为初始化的账户密码】创建临时文件夹mkdir-p/tmp/boot挂载启动文件cd/devmount-tvfatsynoboot1/tmp/boot/ 改下列文件的sn和macvim/tmp/boot/boot/grub/grub.cfg ......
  • OUI查询(MAC地址厂商查询)
    IEEEOUIhttps://standards-oui.ieee.org/MAC地址查询-在线工具https://itool.co/mac查询MAC地址厂商信息、制造商名称......
  • mac电脑icloud登出
    mac电脑中会涉及到软件下载或者备份,所以可能存在个人账号登录到公司电脑然后忘记登出的情况1.从mac电脑登出 Mac电脑如何登录iCloud【百科全说】(bkqs.com.cn) 但是需要密码            2.登录官网顶号        ......
  • macOS 运行xxx.command文件提示”无法执行,因为您没有正确的访问权限“解决方法
    使用苹果mac电脑运行.command文件时,是否遇到弹出”无法执行,因为您没有正确的访问权限“的窗口?遇到这种问题怎么解决呢?这里小编为大家带来了详细的解决方法,一起来看看吧!解决方法:方法一:打开终端工具,输入以下命令:sudosh注意后面有空格然后再把.command文件直接拖入终端按回车......