Shortcut Source Tool
Copy and paste multiple actions, view/edit/compare/save/import/repair/web-review shortcuts
What this shortcut does
👉 Get Shortcut without Login OS Compatibility macOS Yes ≥ iOS 15 Yes ≤ iOS 14 Yes, using Shortcut Downgrader Please download Shortcut Source Helper ( https://.co/shortcut/10060 ) to use this shortcut. The Copy Actions feature also requires the Actions app (https://apps.apple.com/app/id1586435171) and iOS 16.1, macOS 13 or later, and the Compare Shortcuts feature requires the a-Shell mini app (https://apps.apple.com/app/id1543537943). This is a developer tool with which you can select/share a shortcut or source file (from.txt,.json,.xml,.plist,.wflow,.shortcut or iCloud link) to: Copy and paste multiple actions between two blank comments (more info below), Delete actions between two blank comments Quick Look in plist or json format, Convert from/to plist and json, Save or share in plist or json, Edit source and import back to Shortcuts, Set custom shortcut color (RGB + alpha), Replace ‘++’ with new lines in Import Questions, Convert decimal numbers to E notation (more info below), Detect corruption automatically and repair (more info below), Compare with other shortcut for differences: Review shortcuts interactively in web browser (more info below): Copy Actions This feature will copy actions between two empty Comment actions into the clipboard, which then can be pasted into any shortcut. If no empty comments are found, all actions will be copied. If there is only one, it will copy all actions from the next one until the end. CAUTION : Due to the way the Shortcuts editor works, certain parameters in actions (notably, but not limited to, Find/Filter ) may be unexpectedly altered when pasted. This happens even when pasting a single action using the built-in feature. Please look out for those changes, especially when pasting many actions at once. Million thanks to @dotdev
for the groundbreaking discovery of the UTI method! Web Review The web review feature creates an html file from a shortcut, which looks similar to what you see in the Shortcuts app, but with these four major differences: iPhone, iPad, Desktop Browser Support You can open the html files on device, save in Files or share and open in any browser. They look and work the same way on any platform. Below is an iPad screenshot comparing two versions of a shortcut side by side. For better experience on small devices, it has an option to trim large text content from some actions. Block Folding You can tap the header of an if/repeat/menu block or an action containing extra content to hide its nested actions or content. It helps you easily navigate shortcuts from others or long shortcuts you made but forgot how they work. All Info Shown on Screen All action information—including action parameters, variable type casting, dictionary key paths, where magic variables come from—is displayed, making it easy to see what it is doing at a glance. You can take a screenshot and share as how-to snippets. Since Safari can take a tall screenshot in pdf, you can simply convert it to an image and share, rather than taking, cropping and stitching multiple screenshots. Screenshot below shows how web reviews deliver more info— URL as Rich Text —yet take up less space. Search In a browser you can search any text, including action names, parameters, variable names and numbers, text/comment/list/dictionary content, etc. You can also see where magic variables come from by tapping them; the browser will jump to the source action, unfolding blocks if necessary. Quick Look as Text Web Review can also be converted to and viewed/saved as plain text. Some Notes If you choose “Create Web Review (trim large content)” from the shortcut menu, it will trim large text contained in text, comment, list and dictionary actions. It also trims long dictionary values (left in screenshot below). However, variables used in the content will all be displayed (right). Actions with very large content are folded by default. It will use the action id, instead of the name, of an action it does not recognize. This is handy for 3rd-party actions you do not have, because you can guess their functions by the id string and also see what parameters they have. Decimal number vs E notation Decimal numbers ( 3.14 / 3,14 / ٣٫١٤ ) in Number , Calculate , If , Dictionary , Ask for Input actions work correctly only in specific regions. Shortcut Source Tool ensures full compatibility by converting them to E notation ( 314E-2 ). https://en.wikipedia.org/wiki/Scientific_notation#E_notation Corruption Check/Repair Corruptions (unbalanced if/repeat/menu ) can happen for unknown reasons. However, it is difficult to notice because the Shortcuts editor does nothing about it. Such a shortcut can act weird when editing: Shortcut Source Tool will detect corruption automatically when opening a shortcut and, if so, will create a repaired version.
Works with
Before you start
Required apps
- a-Shell mini
- Actions
Set up your shortcut
01. Open in Shortcuts Library
Review the details and select Install.
02. Review in Apple Shortcuts
Check the actions and permissions, then add the shortcut.