Repeat with Each


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


Action Information


Repeat with each item in [Items]


(Anything) A list of items (optional)


Every item passed to the “End Repeat” action


Expertise Needed
Matthew's Score
Date Added


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.

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.
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.
Get Article using Safari Reader
Gets article details, including body text, author, publish date, and more, from every URL passed into the action. Input URLs Result Article Note Use a Get Details of Article action immediately after this action to get specific details about the article. This action only supports getting one article from each URL.
Find Calendar Events
Searches for the calendar events in your library that match the given criteria. Allows for sorting, changing the order, and limiting the number passed as a result.
Get Details of Calendar Events
Extracts information from calendar events, including start date, end date, whether it’s an all day event, the calendar it belongs to, the location, whether it has alarms, the event duration, the organizer, the attendees, the URL, the title, the notes, & more.
Get Details of Event Attendees
Extract information from event attendees, including their name, whether “Is Me” is true, their role, or status in regards to the meeting.
Add New Event
Creates a new event and adds it to the selected calendar.
Select Contact
Prompts to pick a person from your contacts and passes the selection to the next action.
Append to Text File
Adds the text passed as input to the end of the specified file. Requires the name or path of the file to retrieve. For example, if you are appending a file called “notes.txt” in a folder called “Public”, use “/Public/notes.txt”.
Make GIF
Creates an animated GIF from the images or video passed into the action.
Combine Text
Joins text together, inserting the separator between each join.
Replace Text
Replaces some text passed into the action with other text.
Split Text
Separates text passed into the action into a list.
Passes the specified text to the next action.
Select Photos
Prompts to choose photos and videos from your photo library.
Edit Reminder
Sets a specific field of the reminder passed into the action. Detail The property of the reminder to edit. Edit The operation to perform on the selected property of the reminder.

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.