Shortcuts for Mac: Scripting your desktop with Apple’s Mac-only actionsShortcuts for Mac includes scripting actions for apps, windows, and the Script Editor — here's how to take advantage of these Mac-only actions.
Source:
Shortcuts for Mac: Scripting your desktop with Apple’s Mac-only actions