Example for the Import Callback script
x=Multiple File Import(
<<Set Folder( "C:\Users\v1\Documents\" ),
<<Set Name Filter( "*.csv; *.txt; " ),
<<Set Name Enable( 1 ),
<<Set Import Callback( function({mfi,list},show(list, mfi<<GetFolder);x<<closewindow) )
) << createwindow;
This script runs when the import button finishes; you might need the list of data tables.
You might send MFI a command to <<get a parameter the user specified.
x<<closewindow will force the window to close, ignoring the check box.
Extra info:
<<createwindow starts the mfi platform interactively with the setup provided; the <<CreateWindow message puts the created window in the X variable. If you use the <<ImportData message instead, x will hold the data table list. If you don't use a message, x will hold the scriptable platform, which you can send messages like <<SetFolder and <<CreateWindow to.
The setup messages are inside the parens for the mfi launch and happen before the window opens; the launch returns an MFI object which the CreateWindow message is sent to; the result from CreateWindow is assigned to x.
Craige