Creating and editing scripts
After you have planned your scripts, you are ready to create, edit, and manage them.
To create or edit a script:
1.
Choose Scripts menu > Script Workspace.
Or, choose File menu > Manage > Scripts.
The Script Workspace window opens. You create and edit scripts using the three panes in this window—the scripts pane (left), the script editing pane (center), and the script steps pane (right).
2.
 •
 •
3.
Or, double-click the script step in the script steps pane.
4.
 •
 •
 •
Note  As you edit a script step, you may see the Restore option. Restore indicates that the criteria you specified when the script step was last edited will be used when the script step is executed.
5.
 
On a blank line, type # or choose Comment from the script steps pane. Using the Comment script step in your script helps others who might want to look at or modify it.
Note  An asterisk (*) next to a script name means that the script has been changed but not saved.
6.
Or, choose File menu > Save Script in the Script Workspace window (Windows), or choose Scripts menu > Save Script in the FileMaker Pro menu bar (OS X).
7.
To manage scripts:
Do any of the following to manage scripts in the scripts pane:
 
 •
Windows: Choose File menu > Print Script in the Script Workspace window.
 •
OS X: Choose File menu > Print in the FileMaker Pro menu bar.
Right-click the script and choose Grant Full Access Privileges. See the notes below for additional information.
Notes
 •
 •
 •
 •
 •
 •
 •
 •
To edit a script in a new window, right-click a tab in the script editing pane and choose Move Tab to New Window, or click a script name in the scripts pane and choose File menu > Open Script in New Window (Windows) or Scripts menu > Open File in New Window (OS X). The script opens in the Edit Script dialog box. Keep the following in mind:
 •
 •
 •
 •
 •
Setting a script to run with the full access privileges enables users with limited access and privileges to perform scripted tasks that they would otherwise be unable to perform, such as exporting or deleting records. The access privileges do not change, but the script is allowed more privileges than the user. Furthermore, full access does not carry over to any subsequent sub-script, unless this feature has been enabled in that script as well.
 •
Scripts can be set to run with full access privileges only by users with the full access privilege set. Only users with full access privileges can edit or delete scripts for which this feature has been enabled.
 •
 •
 •
 •
If a script step specifies a field in a tab panel or slide panel that is not the front-most panel, the specified field is selected and the panel it is in moves to the front of the panel control. If, however, the same field appears elsewhere on the layout and the script finds that field first, the panel with that same field will not come forward. Instead, assign an object name to the field and use the Go to Object script step to move to that instance of the field.
 •
If a script step specifies a field in a popover, the popover opens and the field is selected. If the same field appears elsewhere on the layout and the script finds that field first, the popover with that same field will not come forward. Instead, assign an object name to the field and use the Go to Object script step to move to that instance of the field.
Related topics 
Script steps reference (category list)
Script steps reference (alphabetical list)
Working with buttons and button bars on layouts
Working with the Scripts menu
Editing scripts privileges
Publishing databases on the web
Debugging scripts (FileMaker Pro Advanced)
Topics in this section
Managing scripts using folders
Copying and pasting scripts
Running scripts on FileMaker Server
Importing scripts from other FileMaker files