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.

0๏ธโƒฃ

Nothing

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.

๐Ÿค”

Comment

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

๐Ÿ”Ÿ

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.

1 / 212