Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Get Directory
- Show Custom Dialog
- Allow Formatting Bar
- Refresh Object
- Beep
- Speak (OS X)
- Dial Phone
- Install Plug-In File
- Install Menu Set
- Set Web Viewer
- Open URL
- Send Mail
- AVPlayer Play
- AVPlayer Set Playback State
- AVPlayer Set Options
- Refresh Portal
- Send DDE Execute (Windows)
- Perform AppleScript (OS X)
- Execute SQL
- Send Event
- Comment
- Flush Cache to Disk
- Exit Application
- Enable Touch Keyboard
- Glossary
Files script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 196
Recover File
Purpose
Recovers a damaged FileMaker Pro file.
Format
Recover File [No dialog; “<filename>”]
Options
• Perform without dialog prevents a dialog box from displaying after the script step performs
that shows how many bytes of data were recovered, the number of records and field values
skipped, and the number of field definitions recovered.
Perform without dialog applies only to default recovery operations. The Advanced Recovery
Options dialog box is not supported.
• Specify output file
specifies the file to be recovered. For more information, see Creating file
paths. If you don’t select a source file, the Open Damaged File
dialog box displays at runtime.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
The Recover command makes an aggressive attempt to reopen a damaged file. It is intended for
data recovery, not file repair. Do not use the Recover command as part of routine file maintenance.
FileMaker Pro attempts to recover as much of the information in a damaged file as possible, and
then creates a new, recovered file. The original file is not deleted or replaced.
Note Before you begin, be sure you have enough disk space for the recovered file. If there isn't
enough space, the recovered file won't be usable.
Example 1
Opens Invoices Backup, then attempts to recover the database if it is damaged.
Open File ["Invoices Backup"]
If [Get ( LastError ) = 807]
Recover File [No dialog; "Invoices Backup.fmp12"]
End If
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script No
FileMaker Go No
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution Yes