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 />

Using ScriptMaker and buttons 5-27<br />

9. 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 />

10.Click Done.<br />

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

E Apple events<br />

Choosing an Apple event to send<br />

When you add the Send Apple Event step to a script, you choose an<br />

event in the Specify Apple event dialog box. The following table<br />

explains the options.<br />

To Do this<br />

Open the target application Choose open application. In the Open File dialog box, confirm<br />

the target application you selected in step 5 in “Defining a<br />

script to send Apple events” on page 5-26, or select a different<br />

application. Click Open.<br />

Open a file Choose open document.<br />

1 To open the same file each time <strong>FileMaker</strong> <strong>Pro</strong> sends the<br />

event, click Document, and then click Specify File. In the<br />

Open File dialog box, select a file, and then click Open.<br />

1 To open a file using a pathname that’s stored in a field in the<br />

current record, click Field value, and then click Specify Field.<br />

In the Specify Field dialog box, select a field on the current<br />

layout, and then click OK.<br />

1 To open a file by specifying a path to the file, click Script text<br />

and type a path in the text box. (For example, HD:Database<br />

folder:Database file.) This option opens the same file each<br />

time <strong>FileMaker</strong> <strong>Pro</strong> sends the event.<br />

Perform a script in the target<br />

application<br />

Choose do script. The target application must support the do<br />

script event.<br />

1 To specify the file that contains the script, click Document,<br />

and then click Specify File. In the Open File dialog box, select<br />

a file and then click Open.<br />

1 To perform a script that’s stored in a field in the current<br />

record, click Field value, and then click Specify Field. In the<br />

Specify Field dialog box, select a field on the current layout.<br />

(The field can contain a complete script or a script name<br />

depending on how the target application supports the do<br />

script event.) Click OK.<br />

1 To send a script with the event, click Script text and type<br />

script commands or a script name in the text box. The script<br />

must be written in the target application’s scripting<br />

language, not AppleScript. This option sends the same<br />

script each time <strong>FileMaker</strong> <strong>Pro</strong> sends the event.

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

Saved successfully!

Ooh no, something went wrong!