Creating Sub-Scripts
You can create small sub-scripts that do one or two specialized tasks, then combine them with a more generic larger script to execute a variety of actions. These scripts may only contain one step apiece, but they allow you to retain a variety of settings without having to re-search or re-sort each time you want to create a variation on one script idea. For example, if you frequently have to sort your files by last name, you can preset your database with this sort, then create a sub-script that only has a Sort step in the script. Then you can add this sub-script to any other scriptfor updating accounts payable or analyzing account payment patternsas you need it. We use this strategy to create a search script for payments by check.
To create a sub-script to find records
1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).2 .When the Define Scripts dialog box appears, click New.3 .When the Edit Script dialog box appears, type Find Checks in Script Name.4 .Scroll down to the Found Sets category in the left window and double-click Perform Find (Figure 7.22).
Figure 7.22. You don't need to have an existing found set in place before you select Perform Find.

Figure 7.23. You can save different find criteria in the Specify Find Requests dialog box, and select the one you need for a specific sub-script.
[View full size image]

Figure 7.24. To create a new find request, first select a field.
[View full size image]

Figure 7.25. This script will find all payments made by check.
[View full size image]

Figure 7.26. To build modular master scripts, each sub-script contains only one set of criteria.

To create a sub-script to sort records
1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).2 .When the Define Scripts dialog box appears, click New.3 .When the Edit Script dialog box appears, type Sort by Last Name in Script Name.4 .Scroll down to the Found Sets category in the left window. Double-click Sort to move it to the script-assembly list. Click Specify (Figure 7.27).
Figure 7.27. This sort script has a fixed sort order, so it doesn't require the dialog box.
[View full size image]

Figure 7.28. Select the sort criteria for your sub-script in the Sort Records dialog box.
