Pages

Apple Shortcuts

Example to track water:

https://www.icloud.com/shortcuts/448c4ea558bb4430b65cbb9c4894f422

Apple Guide to Shortcuts: https://support.apple.com/guide/shortcuts/welcome/ios

It is an app you'll need to download on your phone.

Action

Building block of a shortcut.

  • Single step or function.
  • Runs in order top to bottom.
  • Content/Info is passed from Action to Action.
    • visible line connects actions when info is set to flow between them.
    • Actions that aren't compatible will not show a visible line connection.

Get Actions

  • only output, no input, like get-upcoming-events, get current song.

No Input or Output

  • Like 'set appearance'

Variables

https://support.apple.com/guide/shortcuts/use-variables-apdd02c2780c/7.0/ios/17.0

If Actions

https://support.apple.com/guide/shortcuts/use-if-actions-apd83dcd1b51/7.0/ios/17.0

  • Stop Shortcut
  • Stop and Output
  • Respond
  • Do Nothing
  • Copy to Clipboard

Repeat Actions

https://support.apple.com/guide/shortcuts/use-repeat-actions-apdc11deb2c1/7.0/ios/17.0

Choose From Actions

https://support.apple.com/guide/shortcuts/use-the-choose-from-menu-action-apdd7bf369da/7.0/ios/17.0

Create New Shortcut

  1. Create a new shortcut
  2. Add Actions
  3. Run

Examples

Days Dry (challenge to avoid alcohol)

Set a new start date?

If yes, then set dry_start_date variable.

If dry_start_date is empty, then set for today.

calculate days between dry_start_date and current_date

display result