Shortcuts Actions

Table of contents

  1. Create Shortcut Link
  2. Get Shortcut Detail
  3. Get Shortcuts
  4. Make Shortcut
  5. Open Shortcut
  6. Run Self
  7. Run Shortcut
  8. Search Shortcuts

To use actions in this category, use this include statement:

#include 'actions/shortcuts'
createShortcutLink(variable shortcut)

Get Shortcut Detail

Get a detail about a Shortcut.

enum shortcutDetail {
    'Folder',
    'Icon',
    'Action Count',
    'File Size',
    'File Extension Creation Date',
    'File Path',
    'Last Modified Date',
    'Name',
}

getShortcutDetail(variable shortcut, shortcutDetail detail)

Get Shortcuts

Get all of the Shortcuts on the device.

getShortcuts(): array

Make Shortcut

Create a shortcut.

makeShortcut(text name, bool ?open = true)

Open Shortcut

Open a shortcut in the Shortcuts app.

openShortcut(text shortcutName)

Run Self

Run the current Shortcut with optional output.

runSelf(variable output)

Run Shortcut

Run Shortcut with name shortcutName, providing it with input.

run(text shortcutName, variable input)

Search Shortcuts

Search the users Shortcuts.

searchShortcuts(text query)

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.