Quicker linking to apps in Drafts
June 3, 2020 at 1:29 PM by Dr. Drang
Today on the Automators forum, there was a question about using Shortcuts to get the current version of an app in the App Store. When I read the answer, from Stephen Millard (@sylumer), I immediately knew I could modify his shortcut to speed up linking to apps, something I do quite often here.
Up until now, this is how I’ve been linking to an app:
- Open the App Store app.
- Search for the app I want to link to.
- Get the app’s URL from the Share Sheet.
- Return to Drafts, which is where I’m writing the post, select the text I want to turn into a link (typically the name of the app), and run the Markdown Reference Link action from @pdavisonreiber.
Because the App Store doesn’t open in search mode, this can take half a minute to a minute to do. Even worse is the context shift as I switch from Drafts to the App Store and back. By stealing Stephen’s shortcut and making a Drafts action that glues it to @pdavisonreiber’s action, my workflow has been reduced to
- Type the name of the app and select it.
- Run the action.
which runs in just a few seconds, requires no intervention on my part, and has no context shift other than me watching the screen change from Drafts to Shortcuts and back.
Here’s my adaptation of Stephen’s shortcut. It grabs the App Store URL of the given app and puts it on the clipboard
Step | Action | Comment |
---|---|---|
0 | I won’t be running this from the Share Sheet, but I have to set it up as if I will so it accepts text. | |
1 | Search the App Store for the given text. We have to have some faith that the search will work. | |
2 | We also have to have some faith that the app we’re looking for is at the top of the found list. | |
3 | Get the URL of the app. | |
4 | Put it on the clipboard so it’s ready to be used in the next step of the Drafts action. |
The App Store Link action consists of two steps. The first runs the shortcut, passing it the selected text.
The second step runs the
action, which uses the URL on the clipboard to turn the selected text into a link.So by doing virtually no work of my own, I have a new Drafts action that will save me upwards of a minute every time I need to link to an app and doesn’t take me out of the flow of writing.