Shortcuts and Screenshots on iOS

Shortcuts App Icon

Periodically I’ll find myself fascinated for weeks at a time with Apple’s Shortcuts automation app for iOS and iPadOS, tinkering endlessly on shortcuts that are ostensibly intended to save me time. If I’m being honest though it’s really all about the pleasure of hacking.

Playing with shortcuts is a bit like peeling back the surface layer of the iPhone and iPad, exposing a hidden dimension where apps can work together and tasks can be automated. For someone like myself with very meager programming skills, it’s also empowering: the Shortcuts app is a beautifully simplified scripting environment that puts some of the vast capabilities of true coding in the hands of novices. I’ve got shortcuts that tell me when the next bus is arriving on my block, that change the volume on my home theater, that search for reviews of any movie, show or product that I highlight in text, that help me publish posts (including this one) on my blog, and many more.

Many incredibly useful shortcuts can be set up in less than a minute or two, but it’s also possible to spend hours creating richer, more complex ones too. Even if doing this consumes more time than you could ever conceivably save in productivity, the satisfaction you get from a shortcut is a bit like the bargain you strike when you train a dog to fetch your slippers: it takes a lot of work, but it’s a neat trick.

Given all of this energy I’m pouring into creating shortcuts, I thought I would share some of them here. This first one is called “Screenshot(s) to iCloud” and it helps cure a longstanding annoyance: removing screenshots from the iOS/iPadOS camera roll by archiving them intelligently.

Like a lot of designers and pretty much anyone who’s enthusiastic about mobile apps, I take a lot of screenshots. iOS dumps all of those into the system camera roll in the Photos app alongside all of the countless personal pictures I’ve taken. Naturally, that commingling has always irritated the fussy part of me that likes everything in its right place.

It’s certainly straightforward if tedious to manually export that backlog of screenshots from the Photos app’s “Screenshots” smart album, which helpfully collects them all in one place for you. But that method yields files with names like “IMG_6651.png,” which is not particularly helpful or elegant.

My shortcut not only allows you to give each screenshot a descriptive name on the fly, but it also helps you keep them all organized by prepending the file names with the date that the screenshot was taken. You can run it on one image at a time or in batches, and they all get saved to a designated directory in iCloud. (It’s also easy to modify this shortcut to export the files to Dropbox if you prefer, though Dropbox is pretty much redundant these days.)

For example, I’ve got a number of screenshots from the past year or so that I took each time I hit some significant karma milestones in Todoist. I snapped one when I hit a streak of four hundred consecutive days of meeting my daily task completion goal, back in November of 2018, and then another when I hit six hundred consecutive days this June. And then in July, I took several screenshots when I was just one karma point from hitting the “Grand Master” top tier of usage, or roughly 16,000 completed tasks. (I use Todoist all day long.)

To dispatch these old screen grabs easily, I simply select the images in Photos and run the shortcut from the Share menu. (Due to a bug in iOS/iPadOS 13.3, you unfortunately can’t run it from the Instant Markup screen immediately after you take a screenshot, at least today, but hopefully Apple will fix that soon.) The shortcut asks me what I want to name the series and I type in simply “Todoist.” Then it checks if any two or more of the screenshots were created on the same date. For those that were, it appends a sequential number to the file name.

The shortcut also checks if any of the images I’m exporting have a file size larger than two megabytes, and for those that do it automatically compresses and exports them in JPEG format (smaller files are preserved in their original PNG format). Exported images get sent to an iCloud directory called “Screenshots for iOS” inside the “Shortcuts” folder. (Unfortunately Apple does not allow shortcuts to automatically create directories in iCloud the way that they can with Dropbox, so you have to manually create that directory ahead of time.) Once that’s done, it asks me if I want to delete the screenshots from Photos, which of course I do because that’s kind of the whole point to begin with. And finally it confirms the whole process with a notification that shows the names of the exported screenshots alongside their final image sizes.

Once all of that’s done, this is what results in the Files app:

Exported Screenshots in Files App

As you can tell, this shortcut performs a lot of mildly intelligent operations that would be time consuming to perform manually, all bundled up into a one-tap trigger. And it’s really just a demonstration of what can be achieved with even as little coding smarts as I have. To put it mildly, the Shortcuts app is really powerful and, as I said earlier, really empowering in that it allows me to bend these devices closer to my will. In particular, Shortcuts has been a boon to productivity on my iPad (I still prefer to use my iPad rather than a MacBook whenever I can) because it adds capabilities that I could not achieve as easily or as quickly without this capability—sometimes more easily and more quickly than on a Mac, even. I’ll share more of these shortcuts in future posts, but for now, if you want to download “Screenshot(s) to iCloud” and give it a spin for yourself, you can get it at this link.

Note: You’ll need to be running iOS/iPadOS 13 to use this shortcut. You’ll also need to enable the horribly named “Allow untrusted shortcuts” option in Settings.

+