The name of the Shortcut to call from your Shortcuts library.
An object contain and URL query parameters returned by the Shortcuts app. For example, if the the shortcut ends returning a value, it will be in the result
key of this dictionary. If it returned a Dictionary, this would have each of the keys of the dictionary as a string value.
Optional
resultConvenience method to retrieve the result
key from the reponse
object. This is equivalent to shortcut.response["result"]
. The type of value in this key depends on the value returned from the shortcut.
The current status. Used to check outcome after run
is called. Possible values:
run
has not yet been called.The string value to pass as the Shortcut Input value.
If true, the script will pause and wait for the shortcut to complete and return a result. If false, execution of the script/action will continue immediately and no response/results will be available.
Shortcut objects are used as a convenience to run a shortcut in Apple's Shortcut app, and optionally obtain a result. This is a wrapper for making x-callback-url requests and waiting for a response from the Shortcuts app.
An example, with associated shortcut, can be installed from the Directory.
Example