This Week's Sponsor:

Incogni

Put an End to Spam, Scams, and Robocalls on Your iPhone


Posts tagged with "shortcuts"

Shortcuts for Mac’s Superpower

Earlier today on Six Colors, Jason Snell wrote about running Shortcuts from the command line:

I was reminded by Simon Støvring, maker of the excellent Mac and iOS utility Data Jar (which is a persistent data store that’s accessible via Shortcuts), that people may not be aware of just how well integrated Shortcuts is into macOS.

Jason has put his finger on something I think has gone unnoticed by a lot of users. The deep integration of Shortcuts with macOS is its superpower, especially because it’s bidirectional. You can run your shortcuts from the command line and run command line scripts in your shortcuts. The same goes for AppleScript.

Add to that the ability to run shortcuts via AppleScript files, as applets, or with third-party apps, and there’s an incredible amount of room for creativity in bringing tools built into macOS and third-party automation apps together in new ways. It’s what led me to build the utility shortcuts I wrote about on MacStories and Club MacStories today and Federico to explore new ways to pass input into shortcuts earlier this week.

Be sure to check out Jason’s story for examples of the way shortcuts can be run from the command line and the results passed to other apps or used by macOS in various ways.

Permalink

How to Batch Convert Shortcuts for Use Throughout Monterey and with Other Automation Apps

My latest Shortcuts experiments began in earnest on my way back from Rome. I stopped in Ireland for a few days to deal with COVID testing and start ramping back up to my normal work routine. I wasn’t quite ready to tackle the day-to-day yet, so I decided to revisit a Shortcuts experiment I had started back in June.

I’ve been a fan of PopClip for years and have played around with creating my own extensions for the app occasionally. So, shortly after WWDC, I tried building a PopClip extension that triggered a shortcut that had been saved as a Service. PopClip works with services, and the extension I built came tantalizingly close to working, but it had too many issues to be useful, so I set it aside.

PopClip.

PopClip.

Sitting in Dublin with the released version of Monterey and a new version of PopClip that had been updated to work with Shortcuts, I revisited my early experiments. The updates to macOS and PopClip made adding shortcuts as PopClip extensions trivially easy, as Federico demonstrated recently in MacStories Weekly. Then, when I got home, my Stream Deck was waiting for me, which led to another round of experimentation and an in-depth story on the many ways it can run shortcuts.

Since then, I’ve been incorporating Mac shortcuts I’ve built into my workflows using multiple third-party apps like BetterTouchTool, Alfred, and, of course, PopClip. It wasn’t long before I wished there was a way to batch process shortcuts, so I could use them in multiple ways across Monterey and in third-party apps.

Scripts built with AppleScript are just one way to integrate shortcuts with other apps.

Scripts built with AppleScript are just one way to integrate shortcuts with other apps.

To streamline the process, I turned, of course, to Shortcuts itself. In total, I’ve created four shortcuts to help me deploy my favorite shortcuts across macOS:

  • Script Builder: Generates .scpt files that can be incorporated in other apps from multiple shortcuts using AppleScript
  • Dock Applet Builder: Creates Dock applets from shortcuts that can be launched from the Finder, app launchers, and more
  • Script Applet Builder: Converts shortcuts into AppleScript applets with custom icons that behave like Dock applets but don’t get automatically deposited in your Dock
  • PopClip Builder: Produces and streamlines installation of multiple PopClip extensions with custom icons that run shortcuts

I’ll cover the first two shortcuts here. Script Applet Builder and PopClip Extension Builder are included in The Macintosh Desktop Experience, my column for ClubMacStories+ that explores new ways to make your Mac work for you.

Read more


Jason Tate’s Dedicated Now Playing Mini-Computer

Source: Chorus.fm.

Source: Chorus.fm.

As you can imagine, Jason Tate, Chorus.fm’s founder, listens to a lot of music. He wanted a dedicated device that displays the music he listens to throughout the day, so as a weekend project, he built what he wanted:

A small Raspberry Pi powered screen that displays what I am currently listening to. It sits, unassuming, next to my computer on the desk. When no music is playing it displays my most listened to albums from the past week, as well as some my music listening stats pulled from Last.fm.

The device consists of a Raspberry Pi Zero WH, a 4” screen, a 3D-printed enclosure, and other parts. The Pi runs Linux, serving a purpose-built website hosted on a Chorus.fm server that periodically polls the Last.fm API to fetch the currently playing song. The Now Playing screen’s design looks fantastic and is inspired by Marvis Pro, an Apple Music client for the iPhone and iPad that I wrote about last week in MacStories Weekly. If nothing is playing, the device shows Tate’s Last.fm listening stats and top albums played during the past week.

A nice final touch is that Tate’s creation can be controlled entirely with a shortcut that run shell scripts on the Raspberry Pi, allowing it to be shut down, rebooted, and refreshed, or the screen to be turned on and off separately.

I love projects like this and immediately began thinking of ways it could be extended using Apple’s MusicKit framework. Tate is using the device he built on his desk, but the size would work in a lot of environments like a kitchen countertop or bedside table. With the cold weather descending on Chicago, this seems like the perfect sort of project to dig into after the holidays. If you’re interested in learning more and building your own, Jason Tate’s story includes everything you’ll need.

Permalink

Exporting Links from Safari Reading List via Shortcuts for Mac

Reading List Exporter.

Reading List Exporter.

A few weeks ago in the second lesson of the Automation Academy for Club MacStories+ and Club Premier members, I wrote about how I’ve been using Reminders as a read-later app in addition to traditional task management. The full details are in the story, but to sum up: using a combination of shortcuts based on Apple’s native actions, I can use Reminders to choose between long and short stories whenever I’m in the mood to read something. I love this setup, and I’ve been using it for nearly three months now.

Earlier this week, however, I realized I still hadn’t re-imported old articles from Safari Reading List – my previous read-later tool – into Reminders. That immediately posed an interesting challenge. Sure, I could manually re-save each article from Safari Reading List to Reminders, but that sounded like a chore. Other read-later apps such as Reeder and GoodLinks have long offered Shortcuts actions to fetch links from their databases and process them in Shortcuts however you see fit; Reading List, like other Apple apps, doesn’t support any actions to get the URLs you previously saved. And that’s when I had an idea.

Now that it’s available on macOS, Shortcuts can get access to application support files that are kept private and hidden from users on iOS and iPadOS. More specifically, I remembered that Safari for Mac has long stored its bookmarks and Reading List items in a file called Bookmarks.plist, which folks have been able to read via AppleScript for years. Under the hood, a .plist file is nothing but a fancy dictionary, and we know that Shortcuts has excellent support for parsing dictionaries and extracting data from them.

The plan was simple, and I knew what to do.

Read more


The Curious Case of Apple’s Missing App Integrations for Shortcuts

Shortcuts for Mac.

Shortcuts for Mac.

In researching topics for the Automation Academy over the past few months, I’ve been digging into all the details of Apple’s built-in actions and comparing them against older versions of the Shortcuts app as well as third-party options offered by developers. In doing this, I’ve realized something that has been bothering me for a while: there is a clear inconsistency between modern features in Apple apps and their associated Shortcuts actions. The gap between functionalities in apps and matching Shortcuts actions has expanded over the years, and I think it’s time Apple takes a serious look at its app actions to reverse this trend.

Read more


Getting Started with Shortcuts for Mac and the Stream Deck

The Stream Deck has been a favorite of Mac users who are into automation for a while now, but the device’s utility has grown substantially for a couple of reasons. First, you can use the Stream Deck to run Shortcuts, which expands the device into an entirely new realm of automation.

Second, the Stream Deck opens up new ways to approach all automation on your Mac that aren’t possible with any single Mac app, allowing you to mix and match different kinds of automation in one interface. It’s a powerful combination that unlocks the ability to organize the automation tools you use to fit with the way you think and work.

To get you started, I’m going to cover:

  • What the Stream Deck is and how it works
  • The many ways to run your Shortcuts from the device
  • Approaches for organizing your shortcuts and other automations with the Stream Deck
  • An alternative to the Stream Deck

Let’s dig in.

Read more


Shortcuts for Mac: 27 of Our Favorite Third-Party Integrations

One of the strengths of Shortcuts on the Mac is that it isn’t limited by the way an app is built. That’s reflected in the first wave of apps I’ve tried that support Shortcuts. There’s an excellent mix of apps built with everything from AppKit and Mac Catalyst, as well as apps available on and off the Mac App Store.

As I explained in my Monterey review, Shortcuts is still rough around the edges, but that’s not to say its unusable. If you go into it with reasonable expectations, start off simple, and are patient, there’s a lot that can be accomplished. That’s especially true now because there is a long list of third-party apps that have added support for Shortcuts on the Mac. Apple added a lot of built-in system actions that it brought over from Automator, with which you can build some interesting shortcuts, but the diversity of options has grown exponentially with the release of updated third-party apps.

To get you started, I’ve rounded up some of the most interesting Shortcuts integrations I’ve found so far. Some of these will be familiar if you’ve used these apps’ counterparts on the iPhone or iPad, but many are brand new to any platform, while others are Mac-exclusive. It’s early days for Shortcuts on the Mac, and I’m sure we’ll see even more of our favorite apps jump on board, which we’ll continue to cover here and for Club MacStories members.

Task Managers

Things:

Things.

Things.

Things offers the same set of four Shortcuts actions that you’ll find on iOS and iPadOS:

  • Add To-Do
  • Run Things URL
  • Show List
  • Show To-Do

The two most notable actions are Add To-Do and Run Things URL. Add To-Do includes parameters to add a task to a particular list, with a start date and deadline, tags, a status, notes, and a checklist. There’s also a toggle to open the task in Things to process it further in-app.

Run Things URL is a fantastic power-user action that takes advantage of Things’ URL scheme, which the action runs in the background. Things’ support website has one of the best explanations of its URL scheme of any app I’ve used, allowing you to fill in a web form to construct the URL you need.

Read more


Apple Releases iOS and iPadOS 15.1 with SharePlay, Safari for iPad Fixes, Shortcuts Improvements, and More

Screen sharing in FaceTime with SharePlay (left) and the updated Safari for iPad.

Screen sharing in FaceTime with SharePlay (left) and the updated Safari for iPad.

Alongside macOS Monterey, Apple today released iOS and iPadOS 15.1 – the first major updates to the operating systems introduced last month. Don’t expect a large collection of changes from this release, though: 15.1 mostly focuses on enabling SharePlay (which was announced at WWDC, then postponed to a later release a few months ago), rolling Safari back to a reasonable design, and bringing a few tweaks for the Camera app and spatial audio. Let’s take a look.

Read more


Apple Frames 2.0: Faster, Lighter, and Featuring Support for iPhone 13, iPad mini, iPad 10.2”, iMac 24”, MacBook Air, and Multiple Languages

Apple Frames 2.0.

Apple Frames 2.0.

Today, I’m pleased to introduce Apple Frames 2.0, an all-new version of my popular shortcut to put screenshots inside physical device frames of Apple products. The new Apple Frames, which you can download at the end of this post or on the MacStories Shortcuts Archive, has been completely rewritten so it’s faster and lighter, comes with support for the latest iPhone 13 lineup and iPad mini, brings support for framing iMac and MacBook Air screenshots, and, at long last, is available internationally in seven different languages.

This is a massive update to Apple Frames, so let’s dive in.

Read more