NextPrevUpTopContentsIndex

prompt-for-files

Function
Summary

Displays a dialog which returns multiple filenames.

Package

capi

Signature

prompt-for-files message &key pathname ok-check filter filters
if-exists if-does-not-exist operation owner
pane-args popup-args continuation
=> filenames , successp , filter-name

Values

filenames

A list.

successp

A boolean.

filter-name

A string.

Description

The function prompt-for-files presents the user with a dialog box similarly to prompt-for-file, but in which multiple filenames can be selected.

The arguments are as for prompt-for-file, except that filters defaults to:

  ("MS Word files" "*.doc"
    "HTML files" "*.htm;*.html"
    "Plain Text files" "*.txt;*.text"
    "All files" "*.*")

filenames is a list of filenames, or nil if the user cancels the dialog.

successp is a flag which is nil if the dialog was cancelled, and t otherwise.

filter-name is the name of the filter that was selected in the dialog.

If continuation is non- nil , then it must be a function with a lambda list that accepts three arguments. The continuation function is called with the values that would normally be returned by prompt-for-files . On Cocoa, passing continuation causes the dialog to be made as a window-modal sheet and prompt-for-files returns immediately, leaving the dialog on the screen. The with-dialog-results macro provides a convenient way to create a continuation function.

Note: prompt-for-files is currently implemented only in LispWorks for Windows and Cocoa.

See also

prompt-for-file


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex