Importing and Exporting in a Script
Like almost everything else in FileMaker, you can completely control the import and export process from a script. You use the Import Records and Export Records script, which you can find in the Records section of the script steps list. You also find script steps for Save Records as Excel and Save Records as PDF, with similar options.
17.5.1. The Import Records Script Step
This script step has three options. First, you get to specify the data source to import from. Your choices match those in the File
Once you've specified the source, you can turn on "Specify import order" to record the import field mapping, and other import options. Finally, you can turn on "Perform without dialog" if you want FileMaker to import the data directly, with no input from your users. If you leave this option off, FileMaker displays the Import Field Mapping dialog box when the script runs, so folks can make changes to any field mapping you specified.
17.5.2. The Export Records Script Step
The Export Records script step offers similar options. You can specify the output file and export order, and you can choose "Perform without dialog" if you don't want your users to see the export dialog box.
When you specify the output file, you may be surprised to see an Output File Path List. In other words, FileMaker lets you specify more than one file. This choice doesn't mean FileMaker exports more than one file, though. Instead, it exports to the first file path that is valid. If the first path in the list includes a folder name that doesn't exist, for example, FileMaker skips it and tries the next one.