Scripting actions

shortcuts-action-icon-wait-to-return.webp
Wait to Return
Pauses execution until you leave the Shortcuts app and return to it. This action might be useful after an action that switches apps, to pause execution until you return to the Shortcuts app.
shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-repeat.webp
Repeat
Repeats the contained actions, running them the specified number of times.
shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-choose-from-menu.webp
Choose from Menu
Presents a menu and runs different actions based on which menu item was chosen.
shortcuts-action-icon-stop-this-shortcut.webp
Stop shortcut
Stops execution of the current shortcut and dismisses the shortcut on screen. No more actions will be run after this action.
action-icon-set-name.webp
Set Name
Sets the name of the item passed as input.
shortcuts-action-icon-round-number.webp
Round Number
Rounds the number(s) passed into the action.
action-icon-calculate-statistics.webp
Calculate Statistics
Calculates statistics on the numbers that are provided as input.
shortcuts-action-icon-list.webp
List
Allows you to specify a list of items to be passed to the next action.
shortcuts-action-icon-choose-from-list.webp
Choose from List
Presents a menu of the items passed as input to the action and outputs the user’s selection. Prompt The instruction provided when the list is presented. Select Multiple When enabled, multiple items may be chosen from the list.
shortcuts-action-icon-get-item-from-list.webp
Get Item from List
Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.
shortcuts-action-icon-get-type.webp
Get Type
Returns the type of every item passed as input. For example, if a URL is passed, this action will return “URL”.
shortcuts-action-icon-count.webp
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.
4 / 512345