VISUAL QUICKPRO GUIDE FileMaker Pro 7 Advanced FOR WINDOWS AND MACINTOSH [Electronic resources]

Cynthia L. Baron, Daniel Peck

نسخه متنی -صفحه : 227/ 76
نمايش فراداده

Managing Scripts

It takes a bit of thinking to create a script. Once you have a basic script that works, you won't want to start from scratch the next time. If you want to adapt an existing script, the best strategy is to duplicate the script, then rename it and edit in the change.

To duplicate a script

1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).

2 .In the Define Scripts list of scripts, highlight the name of the script you want to duplicate.

3 .Click Duplicate. The script copy will appear at the end of the list (Figure 7.19).

Figure 7.19. A duplicated script appears just below the original in the Define Scripts window list.

To rename a script

1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).

2 .

In the Define Scripts list of scripts, highlight the name of the script you want to rename, then click Edit.

3 .When the Edit Script dialog box appears, type the new name in the Script Name box, then click OK (Figure 7.20).

Figure 7.20. Rename the duplicated script by typing over the old name.

To delete a script

1 .Choose Scripts > ScriptMaker (Control+Shift+S/Command+Shift+S).

2 .In the Define Scripts list of scripts, highlight the name of the script you want to delete.

3 .Click Delete. When the warning dialog box appears, click Delete again.

Tips

If you rename a script, ScriptMaker updates the script name in every other script that refers to it so that all your other scripts continue to work properly.

The Show All Records script step makes all the records in your database available. Select it to make sure that all records in the database will print in a layout.

If you want a script to let you know that a particular step is complete (or that the script is finished), you can add a beep to it at the appropriate place in the script. The Beep step can be found in the Miscellaneous category. It uses whatever sound file has been selected as the operating system's Alert sound (Figure 7.21).

Figure 7.21. The Beep script step will play the system Alert sound.