Sets a variable to the fully qualified path of a specified folder.
Get Directory [Allow Folder Creation; <variable>; <dialog title>; <default location>]
•Allow folder creation lets users create new folders while they browse the file system.
•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.
Where the script step runs
Custom Web Publishing
FileMaker Pro 14.0
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>/.
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]
Performs a find, prompts the user to select a folder to export to, then loops through records to export files that are in the Products::Picture field.
Perform Find [Restore]
Get Directory [Allow Folder Creation; $DIRECTORY; "Export to Folder"]
Set Variable [$PATH; Value:$DIRECTORY & Products::Picture]
Export Field Contents [Products::Picture; $PATH]
Go to Record/Request/Page [Next; Exit after last]