
MacStories is launching a brand-new series called "Shortcuts Rewind" to provide detailed, step-by-step breakdowns of helpful shortcuts featured in the MacStories Shortcuts Archive. This first installment explores a trio of beginner-friendly shortcuts—Clean Up Rich Text, Shortcut Rich Link, and Create Hyperlink—that demonstrate how to seamlessly transform plain text, rich text, and URLs. By leveraging Shortcuts' built-in Content Graph and combining Markdown conversion techniques, these tools help users clean up messy formatting, generate quick links, and handle complex text flows with ease.
Over the past several years, Federico Viticci has built hundreds of shortcuts, leading to the creation of the MacStories Shortcuts Archive to help readers easily find and download them. Because downloading and tinkering with someone else's shortcuts is one of the best ways to learn, MacStories is introducing Shortcuts Rewind to add deeper context, explain best practices, and illustrate techniques across multiple automations.
This inaugural guide focuses on three relatively simple shortcuts found in the Text section of the Shortcuts Archive that highlight the power of transforming one content type into another. At the foundation of this process is the Content Graph, a core part of Shortcuts inherited from its origins as Workflow. The Content Graph handles data compatibility and conversion chores behind the scenes with little effort from the user, primarily focusing on transformations between plain text, rich text, and URLs.
Have you ever copied text from a webpage and pasted it into an email, only for it to bring along unwanted fonts, text colors, and background colors? The Clean Up Rich Text shortcut solves this problem by stripping away unsightly formatting while preserving basic elements like bold text, italics, and hyperlinks.
The shortcut runs almost instantly in four simple steps:
Get Clipboard action.Make Rich Text from Markdown action.Copy to Clipboard action, ready to be pasted cleanly into any app.The result of Clean Up Rich Text is a much nicer, more readable version of the text copied from a webpage that preserves the link and bulleted list, but eliminates the blue background from the source text.
You can find and download this automation directly in the MacStories Shortcuts Archive.
The Shortcut Rich Link shortcut combines Markdown and rich text to generate a tappable, rich link for any of your existing shortcuts. This allows you to place a direct link to a frequently used shortcut inside an Apple Notes project or a Reminders task, saving you from hunting for it inside the Shortcuts app.
Because this shortcut is a bit longer, it is broken down into two main parts.
Shortcuts uses a URL scheme starting with shortcuts://open-shortcut?name= to open specific shortcuts. Part 1 sets up the selection process:
Get My Shortcuts to pull a list of all your personal shortcuts.Text action containing the hard-coded URL base combined with a Magic Variable representing the chosen shortcut's name.The remaining steps turn the text into a working hyperlink:
What I love about Shortcut Rich Link is that the same link creation technique used in Clean Rich Link to strip formatting is used to build a tappable link. The shortcut is a terrific example of how remixing the same actions can result in very different shortcuts.
The final tool, Create Hyperlink, takes link-creation logic a step further by incorporating branching flow logic to handle different clipboard contents dynamically. Whether your clipboard contains no URLs, a single raw URL, or multiple URLs, this shortcut handles the scenario intelligently.
Get URLs from Input action.Count utility action to determine how many items are present.To handle the three possible clipboard scenarios, the shortcut utilizes nested If actions combined with an Otherwise and End If structure:
Your clipboard doesn't contain any URLs at the moment. Run this shortcut again after copying a link.
Link without bothering you with a selection list.Choose from List and assigns your choice to the Link variable.The final steps finish the hyperlinking process:
These three versatile shortcuts demonstrate the incredible power and flexibility hidden within relatively simple automation designs. By understanding how data formats like plain text, Markdown, and rich text interact through the Content Graph, even beginners can build powerful time-saving tools while mastering techniques for more advanced projects. Stay tuned for future editions of Shortcuts Rewind!
Get instant summaries with Harvest