Scripting actions


Split Screen Apps

Open the specified apps in split screen mode.


Stop and Output

Stops execution of the current shortcut, and outputs content. This action is useful when: โ€ข Running a shortcut from another shortcut (using the Run Shortcut action). The output will be used as the output of the Run Shortcut action. โ€ข Running a shortcut from Quick Actions in Finder on macOS. The output will be saved as a file alongside the files selected in Finder. โ€ข Running a shortcut from Services on macOS. The output will replace the selected content, if applicable. โ€ข Or, when running a shortcut from another location that supports output, like the command-line or the Shortcuts URL scheme. No more actions will be run after this action.



This action does nothing and produces no output. It is useful to separate blocks of actions, or to ensure that no input is passed to the next action.



This action lets you explain how part of a shortcut works. When run, this action does nothing.

โš ๏ธ

Show Alert

Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues. The cancel button stops the shortcut.


Random Number

Passes a random number between the given minimum and maximum to the next action. The minimum and maximum numbers are included as possible results.


Calculate Expression

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


Set Playback Destination

Sets playback destination to a device. Device The device to set playback destination to.


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โ€.



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.

1 / 212