Script Steps Reference

Table Of Contents
Miscellaneous script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 278
Get Directory
Purpose
Sets a variable to the fully qualified path of a specified folder.
Format
Get Directory [Allow Folder Creation; <variable>; <dialog title>; <default
location>]
Options
Allow folder creation lets users create new folders while they browse the file system.
Variable sets a local or global variable to the path of the selected folder. See the Set
Variable script step.
Dialog Title lets you specify a custom name for the folder selection dialog box.
Default Location lets you specify the path that the folder selection dialog box displays
when it opens.
Compatibility
Originated in
FileMaker Pro 14.0
Description
This script step prompts the user to select a folder, then it sets a variable to the fully qualified path of
the selected folder.
In Windows, the path format is /Drive:/<selected folder>/.
In OS X, the path format is /DriveName/<selected folder>/.
Example 1
Opens a folder selection dialog box that displays the desktop, prompts the user to select the
Pictures folder, then sets Products::Pictures Folder to the path of the selected folder.
Get Directory [$DIRECTORY; "Select the Pictures folder";
Get(DesktopPath)]
Set Field [Products::Pictures Folder; $DIRECTORY]
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server No
FileMaker Go No
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution Yes