- Working with Scripts in FileMaker Pro 5
- To create a file's pre-script settings
- To define a script
- To change a script
- To copy a script
- Importing a script
To create a file's pre-script settings:
-
Open the file for which you want to create a script.
-
Now, set up your file to reflect how you want the script to handle each of these items:
Layout: Use the layout pop-up window above the flipbook to choose which layout you'll be using in the script.
View: Use the View menu to place your database in the mode you'll be using in the script.
Find Request: If you'll be building a script that needs to use a particular found set of records, go ahead and set up the appropriate Find Request (Ctrl-F in Windows, -F on the Mac). You need not actually run the Find, just specify the Find Request.
Sort Order: If your script will depend on a particular sort, switch to Browse and set up the sort (Ctrl-S in Windows, -S on the Mac). You don't need to run the sort, just set it up.
Print/Page Setup and Print Options: If your script will depend on specific print settings, choose File > Print Setup. You need not actually print the file, just specify the setup. If you want the script to include any specific print options, such as the number of copies, choose File > Print (Ctrl-P in Windows, -P on the Mac) and select those options.
Import/Export Order: If your script involves either importing or exporting data, you'll want to set the order of the fields. Choose File > Import/Export and make your choices in the related Field Mapping and Field Order dialog boxes.
-
When you're done setting up these items for the file, choose Scripts > ScriptMaker (Figure 3).
Figure 3 To create or change any script, choose Scripts > ScriptMaker.
-
When the Define Scripts dialog box appears, type in a name for the script you'll be creating, and click Create (Figure 4).
Figure 4 When the Define Scripts dialog box appears, give your planned script a distinctive name and click Create.
-
The Script Definition dialog box will appear with all of the file's pre-script settings (Figure 5). You can click OK to close the dialog box, then click Done when the Define Scripts dialog box reappears, and define the rest of the script later.
Or you can start the real work of creating a script by staying in the Script Definition dialog box and jumping straight to step 3 of To define a script on the next page.
Figure 5 The pre-script settings will appear on the right side of the Script Definition dialog box.