Using AppleScript with FileMaker Scripting
Although discussing AppleScript is outside the scope of a FileMaker Pro book, it's definitely worth a mention because it allows you to combine FileMaker scripting with almost limitless ability to affect Macintosh Finder functions (like automatically backing up FileMaker databases at specific times of the day), and to initiate actions in other AppleScript-aware programsfrom simply cutting and pasting text between applications to mining your Netscape cache for interesting GIF files.This example uses a simple script that copies the contents of a FileMaker field, switches to Microsoft Word, and pastes the text into a document.
To send an Apple Event to another Mac application
1 .Choose Scripts > ScriptMaker (Control+Shift+S/ Command+Shift+S).2 .In the Define Scripts dialog box, click New. When the Edit Script dialog box appears, name the new script (we use Paste into Word) (Figure 11.55).
Figure 11.55. This script name describes what its AppleScript does.

Figure 11.56. For the Copy step to work properly, the field whose contents you want to copy must appear in the layout you specify.

Figure 11.57. The Copy script step allows you to copy to the Clipboard all or part of the text contents of a field.
[View full size image]

Figure 11.58. Leave "Select entire contents" checked to copy the entire contents of the field.

Figure 11.59. The Perform AppleScript step allows you to enter commands that are executed by AppleScript.

Figure 11.60. These AppleScript commands switch to Microsoft Word and paste data into its current document.
