Scripting actions

๐Ÿงฎ

Calculate Expression

Evaluates the mathematical expression in the given input string and outputs the result as a number.

๐Ÿค”

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.

๐Ÿงพ

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.

๐Ÿ”ฉ

Get Type

Returns the type of every item passed as input. For example, if a URL is passed, this action will return โ€œURLโ€.

๐Ÿ”Ÿ

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 My Shortcuts

Gets the shortcuts stored on this device. For example, you could use this action with the Make Archive action to zip up your shortcuts.

โ›“

Add to Variable

Appends this action's input to the specified variable, creating the variable if it does not exist. This allows you to make a variable hold multiple items.

2 / 41234