Script Steps Reference
Table Of 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
- Truncate Table
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- 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
- Get Directory
- Enable Touch Keyboard
- Glossary
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