User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
Chapter 10
Creating scripts to automate tasks
FileMaker Pro includes the ScriptMaker
®
feature, which you can use
to automate many tasks, including switching to another layout,
switching to another mode, and finding, sorting, and printing
records.
This chapter tells you how to use ScriptMaker to:
1 plan scripts
1 define scripts
1 define buttons to perform script commands
Note FileMaker Pro scripts are not available when you publish a
database on the Web using FileMaker Pro Web Companion Instant
Web Publishing.
FileMaker Pro has limited support for the ActiveX Automation
(Windows) and AppleScript (Mac OS) and Apple events external
scripting protocols.
Support for ActiveX Automation, Apple events, and AppleScript is
documented in Help. Choose Help menu > Contents and Index, click
the Index tab, and type ActiveX Automation, Apple events, or
AppleScript.
About scripts
A script is a command that tells FileMaker Pro to carry out one
action or a sequence of actions. You perform a script to carry out its
actions. You can choose a script from the Scripts menu or attach a
script to a button.
For example, when you click the Letter button on the Client Entry
layout, a script displays the Letter layout. Then the script switches to
Preview mode and pauses so you can see what the letter looks like
when it prints.
Scripts help you do a job the same way every time. They carry out
simple steps, like changing the printing orientation for envelopes, or
complex tasks, like preparing a large mailing.
Use scripts to combine and automate tasks like:
1 switching to another layout or mode
1 finding, sorting, and printing records
Click to continue the
script—FileMaker Pro
prints the letter, and then
returns to the Client Entry
layout in Browse mode
When you click the Letter
button, FileMaker Pro
performs the Print Letter script
B
uttons on a
l
ayout