Let’s Share Shortcut Techniques

built to share shortcut techniques with others creating shortcuts


Description

Updated for iOS 13

Note: Versions of Let's Share Shortcut Techniques comments prior to 3.2 will not automatically check for a new version. With these pre-3.2 versions, to check for a new version, select Shortcut Update Initiated by User from the main Choose from Menu.

If you are still running iOS 12, you can download Version 2.4 from this page.

Additional Let's Share Shortcut Techniques comments are available on reddit /shortcuts.

The purpose of this shortcut is to share techniques that I and others have learned as we've developed shortcuts.

I plan to update this shortcut periodically. If you have any snippets that you would like to share, please leave a comment and I'll add them to the next version of this shortcut.

Here's a list of techniques currently included in this shortcut...

Within the shortcut, there is a main Choose from Menu that includes the following items:

  • SF Symbol for vCard Menu
  • Create Help and Display in Safari (Markdown Source)
  • Shortcut Update Initiated by User
  • Pick Subset of Shortcuts - all | select | text
  • Pick Subset of Shortcuts - all pre | none pre | text
  • Backup, Archive, and Restore Shortcuts
  • Check Network Status
  • Create vCard Menu with SF Symbol Photos
  • Various Methods to Access Dictionary Values
  • Search For a Shortcut
  • Shortcut plist
  • Encode a Web Sound & Prepare to Embed
  • Run Without Showing Actions
  • Force Shortcut Execution in the Shortcuts App
  • FileExist? TRUE, return contents; FALSE, create file, set contents
  • Dictionary & RepeatWithEach to ReplaceText x N
  • Write to a Device-specific iCloud Folder
  • Generate a Multiple Line Prompt (e.g., with Ask for Input)
  • IF with OR logic
  • Write Contents of Dictionary to a New Note

As an example, here are two dialogs, one from Pick Subset of Shortcuts - all | select | text and one from Create vCard Menu with SF Symbol Photos.

In addition, the shortcut includes embedded actions that provide techniques:

  • To compare the build number of the current version to the build number of the shortcut when it was previously run. If the difference exceeds a specified build delta, display an alert. See below, top left screenshot.
  • To display a "welcome" alert the first time the shortcut is started AND if a specified number of days have elapsed since the shortcut was last run. See below, top-right screenshot.
  • To display a daily alert. See below, bottom-left screenshot.
  • To automatically check for a shortcut update if a certain number of days have elapsed since the most recent check. See below, botton-right screenshot.


Tests

This shortcut was tested using iOS 13.3.1 (17D5026c) beta 1 on an iPad Pro 10.5" and an iPhone 8 Plus.


Acknowledgments

  • Let’s Share Shortcut Techniques is available exclusively on RoutineHub.co. Versions obtained elsewhere might be out-of-date.
  • The framed screenshots were created using the shortcut Apple Frames (iOS) from the MacStories Shortcuts Archive.
  • Let’s Share Shortcut Techniques can check for updates if a user selects Shortcut Update Initiated by User on the main Choose from Menu. One of two update tools can be selected: 1) Embed-a-Update (Version: 1.1.2, Updated: 10/13/19); or 2) UpdateKit (Version 6.0.2, Updated: 11/13/19)

Latest Release Notes

3.6 - Jan. 10, 2020, 7:45 p.m.

New Techniques:
- Added 'SF Symbol for vCard Menu' (to new main menu item)

Modifications:
- Added 'MyTagline' to the help output [Create Help and Display in Safari (Markdown Source)]
- Added comments throughout to clearly indicate the start of each menu item
- In [Embed-a-Update] section, changed the vCard menu icon to iOS 13 colors

Bug Fixes:
[in section: Determine if an alert should be displayed because a specified number of days have elapsed since the shortcut was last run]
- The 'Get File' action was incorrectly referencing a Dictionary value that didn't exist. It was referencing 'Settings File'; it has been corrected to 'Settings Path'.)
- The 'Get Value for Start Time in File' was incorrectly referencing (via a magic variable) the 'Get File' action in the previous section. Because of this bug and the previous, the shortcut worked as expected. Two wrongs made a right; sometimes you get lucky, even with bugs!)


Version history