Developer’s Guide
Table Of Contents
- Chapter 1: Installing FileMaker Pro Developer Edi...
- Chapter 2: Binding solution files
- The binding process—an overview
- Before binding
- Binder and runtime terminology
- Specifying the primary file
- Naming the runtime solution
- Assigning the binding key
- Choosing auxiliary files
- Choosing binding options
- Assigning the three-character extension
- Specifying a location for solution files
- What happens during binding
- Binding cross-platform solutions
- Changing solutions
- Chapter 3: Preparing and managing runtime soluti...
- Chapter 4: Distributing your bundled solution
- Appendix A: Feature comparison—runtime Appendix ...
- Appendix B: About the TechInfo database
- Index
About the TechInfo database B-3
Sample TechInfo article
Below is a sample TechInfo article that has been edited for this
Developer’s Guide. You can provide the backup script in the Script menu
of your solution or create a button for your end users to back up their work.
How To Automatically Back up Your Database Upon Exit
If you are in need of an automated way to save back up copies of a FileMaker Pro 3.x
or later database the following script will work well for you.
This script saves a copy of your database on the fifth close and every fifth close
thereafter. To make the script work, you will need to define a number field called
“Count Field”. Define this script in all solution files that require backups.
In ScriptMaker, define the following script, named Backup:
Set Error Capture [On]
Show message [“Click to reset counter to zero”] {default
button = “No”, 2nd button = “yes”}
If [“Status (CurrentMessageChoice)=2”]
Set Field [“Count Field”, “0”]
Else
Set Field [“count field”, “Count Field + 1”]
If [“count field > 4”]
Save a copy as [“Backup Copy”]
Set Field [“Count Field”, “0”]
End if
End if
After adding all the steps above, click OK, then Done.
1. Choose Preferences from the Edit menu, then choose Document.
2. In the General tab (Windows) or the General pop-up menu (Mac OS), under
When closing <solution filename>, select the Perform script checkbox.
3. Select the script Backup.
4. Click Done.
5. Close the solution file.
Once these steps are executed, you will have a script that will create a backup of your
file every fifth time you close the file.