FormatFilterImport (macro)

Opens the File Open dialog box with the default file extension fileExtType and then imports the selected file. This macro only works with Excel *.XLS? files and dBASE *.DBF? files. You must type fileExtType twice.

Definition:

Def  FormatFilterImport {
      GetFileName *.%2;
      open -WE %1 %A
};

Example:

The following script opens the File Open dialog box with the default file type extension of .xls1 and then imports the selected file.

FormatFilterImport xls1 xls1;