Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active October 4, 2025 03:51
Show Gist options
  • Save ChristopherA/c910c9fb238c6e0a269565316261fdce to your computer and use it in GitHub Desktop.
Save ChristopherA/c910c9fb238c6e0a269565316261fdce to your computer and use it in GitHub Desktop.
How to Count in an iOS/macOS Shortcut

It feels fairly ridiculous to me that you can't do simple increments of a counter that works on all three platforms (iOS/macOS/watchOS).

There is a hack that works with only default scripting functions, but only within a repeat loop.

  • Use the "Number" verb to create a text item.
  • Use the "Add Variable" verb to append the Number to a text variable.
  • Use the "Count" verb to count the items in that text variable.
@ChristopherA
Copy link
Author

We'll see if things change in iOS 17 to make Shortcuts.app better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment