One of the excellent features coming to Shortcuts for Mac is the addition of a scripting capabilities for the Shortcuts app itself – Apple has added AppleScript support for commands like opening and running shortcuts, even without opening the app at all.
Naturally, I immediately got excited to bring this possibility to life using the Stream Deck, a USB device from Elgato with hardware keys that can be customized to your heart’s extent (including using folders and subfolders):
The Stream Deck software for Mac allows users to add third-party plugins offered by the community, including one such plugin called “Run OSA script” that lets users input a script that gets triggered when the button is pressed:
To take advantage of this plugin, I’d need to write my own AppleScript – something I’m not super familiar with.
Thanks to this tweet from Alex Hay, developer of Toolbox Pro, I knew to use the Script Editor app to look into the capabilities of Shortcuts app by examining its’ AppleScript dictionary – here’s how:
If you’re like me and have long relied on the Bartender app for macOS to clean up your Menu Bar, plus you tend to live on the dangerous side and install macOS betas, then you’ll want to grab the beta of Bartender so it works on your Mac again.
Looks like it won't support every feature of Monterey until the full release, but it's still worth grabbing now to clean things up as best it can.
In macOS Monterey, Apple has added 5 sets of actions to the Shortcuts app that are Mac-only – these aren’t available for iPad or iPhone users as they require specific features/apps (see my piece about the cross-platform actions).
Mac users can now easily automate their window management, interact with Finder, make disk images, perform actions taken from Automator, and take advantage of deeper Mac automation – plus there’s two actions not yet found in the betas.
In this 4,800-word piece (about 20 minutes average reading time), I’ll explain each of them in detail, plus give you my initial thoughts on what bringing this functionality to macOS means for the transition to Shortcuts as Apple’s main automation platform.