?

Takes a list of items as input, and runs the contained actions once for each item in the list.

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

Repeat with each item in [Items]

Input

(Anything) A list of items (optional)

Result

Every item passed to the “End Repeat” action

Comments

Generates a “Repeat Results” variable that contains a list of all the items passed out as result, stacked during each iteration.

Use the “”Repeat Item”” variable inside the repeat aera for the individual item in the current loop, and the Repeat Index counts each loop and increases by one every time. Both are found *only* in the variable bar and not via Select Magic Variables.

Very, very useful. One of the best ways to harness the power of Shortcuts – batch tasks.

Shortcuts Using This

Wish your friends a merry christmas
Asks you to pick from contacts in your friends group and individually message them for the holidays.
Send thank-yous
Asks you to pick from your contacts, then shows a Messages window for each so you can send a thank-you message.
Check for a white christmas
Looks for snow in the daily forecast for the next 10 days.
Check the weather forecast
Displays the temperature in conditions between 7 AM and 7 PM for the next 24 hours.

Works Well With

?️
Get Details of Contacts
Extract information from contacts including first, middle, and last name, phone number, email address, street address, URL, birthday, contact photo, prefix, suffix, nickname, phonetic first, middle, and last names, company, job title, department, notes, & more.
?
Count
Counts the number of items, characters, words, sentences, or lines passed as input.

Note (from Apple, for real)
This is just like the Count in Sesame Street, but instead of a vampire, it’s a Shortcuts action.
?
Get Details of App Store App
Extracts information about an App Store app, including artist, price, currency code, formatted price, release date, category, description, the overall rating, the total number of ratings, the current rating, the number of ratings for this version, the version, the date it was last updated, the latest release notes, the content rating, the minimum OS version, whether it’s a universal app, the supported devices, supported languages, screenshot URLs, iPad screenshot URLs, download size, store ID, store URL, artwork, artwork URL, name, & more.
?
Extract Archive
Extracts files from the archive passed as input. Many archive formats are supported, including zip, rar, tar.gz, tar.bz2, tar, gzip, cpio, cab, and iso archives.

Details

Type
Interactivity
Expertise Needed
Matthew's Score
5/5
Date Added to Shortcuts
11/12/2014
Identifier
is.workflow.actions.repeat.count