Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 423
Add comments to your scripts with the Comment script step. Using comments in your script
helps others who might want to look at or modify it.
To build scripts quickly, duplicate (or copy and paste) an existing script that does something
similar to what you want to do and modify the copy. To create a duplicate script with the
same name as the original, select it in the list and press Shift+Duplicate in the Edit Script
window. (Or, in the Manage Scripts dialog box, press Shift as you click
.)
You can also print a script by selecting the script in the Manage Scripts dialog box and
clicking
.
To edit a script:
1. Choose Scripts menu > Manage Scripts. Or, choose File menu > Manage > Scripts.
2. In the Manage Scripts dialog box, select the script you want to change, then click Edit or
double-click the script name.
The Edit Script window opens.
Tip You can open multiple Edit Script windows at the same time. In the Manage Scripts dialog
box, use Ctrl-click (Windows) or Command-click (OS
X) to select non-contiguous scripts, or
Shift-click to select contiguous scripts, then click Edit. A separate Edit Script window opens for
each script. Double-clicking with multiple scripts selected only opens the script that you clicked.
To close all windows, press Alt (Windows) or Option (OS
X) and click the close button in any
window.
3. Do steps 3-6 above.
4. To perform your script, select it in the Manage Scripts dialog box and click Perform. Make
any changes to your script as needed.
5. Close the Manage Scripts dialog box.
Notes
You can also create, edit, duplicate, and delete scripts from the Specify Script dialog box
when you create a button or script trigger.
Use Run script with full access privileges to enable a script to run with the full access
privilege set, even if the current user has logged in with a privilege set that does not have
full access. Using this feature enables users with limited access and privileges to perform
scripted tasks that they would otherwise be unable to execute, such as exporting or deleting
records.
Access privileges do not change, but the script can do more privileged work for
them. Furthermore, full access does not carry over to any subsequent sub-script, unless this
feature has been enabled in that script as well.
The Run script with full access privileges feature can only be enabled or modified by
users with full access privileges. Therefore, only users with full access privileges can edit or
delete scripts for which this feature has been enabled.
The Run script with full access privileges feature only functions in the file in which the
script is defined. This command will not override access restrictions on external files. For
example, a script to delete records in File A that has the Run script with full access
privileges option enabled will not delete records in an access-restricted external file File B.
Users without full access privileges can be given permission to edit scripts that are marked
as modifiable in their assigned privilege set. Full access privileges are required to create,
duplicate, import, and/or delete scripts.