The simplest of the CAPI prompting dialogs is
prompt-for-string
which returns the string you enter into the dialog.
(prompt-for-string
"Enter a string:")
Figure 11.4 A dialog prompting for a string
An initial value can be placed in the dialog by specifying the keyword argument
:initial-value
.
CAPI User Guide (Macintosh version) - 30 Aug 2011