Skip to content

user

user is a Standard Capability: a Script calls its Operations through a Grant the Host gives it, with ask for an answer or tell for none, and a suspending one with and wait. A call the Grants don’t allow fails to load. The full rules: chapter 7. Arguments are checked against the Operation’s Shapes, and a mismatch raises wrong kind; the entries below list the other errors.

Optional: a Host may choose not to offer user.

confirm message, suspending

true when the person accepts the question message, and false when they decline or dismiss it.

Errors: user busy.

choose items [, options], suspending

The item of the list of texts items the person chose, or with multiple: true a list of those they chose, in list order; Nothing if they cancel.

Errors: user busy, out of domain.

enter message [, options], suspending

The text the person entered for message, starting from options’ default; Nothing if they cancel.

Errors: user busy.

notify message [, options], fire-and-forget

Shows message, with options’ title, without waiting for anyone.