Use Services for Systemwide Shortcuts
In macOS, a service is a special, context-sensitive program that can operate almost anywhere. You can find services on the Services submenu of the application menu (that is, the menu with the current app’s name). Alternatively, right-click (or Control-click) something and choose a service from the very bottom of the contextual menu. (Services appear on a Services submenu of the contextual menu if more than four of them are active and applicable to whatever you selected.)
Get Take Control of Automating Your Mac, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.