14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

?<br />

Examples of ScriptMaker scripts<br />

?<br />

To Do this<br />

Perform AppleScript commands<br />

(up to 32K)<br />

Using ScriptMaker and buttons 5-29<br />

Click Script text, and then type AppleScript<br />

commands in the text box. The commands are<br />

compiled when you click OK, and then<br />

<strong>FileMaker</strong> <strong>Pro</strong> stores the source.<br />

5. In the Script Definition dialog box, finish defining or editing the<br />

script, and then click OK.<br />

6. If you are changing an existing script and the Script Settings dialog<br />

box appears, select options, and then click OK.<br />

See step 6 on page 5-17.<br />

7. Click Done.<br />

See “Changing monitor settings” on page 5-37 for an example script.<br />

Choose <strong>FileMaker</strong> Help Index from the or Help menu, and then type:<br />

E AppleScript<br />

The following sections show scripts that you can use as starting points<br />

for your work. Before reading the examples, you should understand how<br />

to use ScriptMaker. For information about script steps or more<br />

examples, see <strong>FileMaker</strong> <strong>Pro</strong> Help.<br />

Choose <strong>FileMaker</strong> Help Index from the or Help menu, and then type:<br />

E script examples<br />

E script steps<br />

Entering and printing data<br />

This example illustrates a simple way to automate data entry. When you<br />

perform the New Entry script, it creates a record, and then pauses so you<br />

can enter data. When the script pauses, you can:<br />

1 resume the script by clicking Continue or pressing Enter. The script<br />

loops (repeats steps) to create a record.<br />

1 print the current record by clicking the Print button on the layout.<br />

<strong>FileMaker</strong> <strong>Pro</strong> performs the Print Record script, and then returns to<br />

the paused New Entry script.<br />

1 stop the script by clicking Cancel.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!