Returns the path to the Documents folder for the current user.
Get ( DocumentsPath )
None
text
FileMaker Pro 8.0
In FileMaker Pro Advanced and FileMaker Go, returns the path to the current user's Documents folder. The path format varies by operating system.
When running on server-side scripts, Get(DocumentsPath) returns the location of the Documents folder. The Documents folder is used as a shared location that scripts from different sessions or other processes on the machine can use to import or export files. See FileMaker Server Help or FileMaker Cloud product documentation in the Product Documentation Center.
•In FileMaker WebDirect, the FileMaker Data API, and Custom Web Publishing, this function is not supported and returns an empty string.
For FileMaker Pro Advanced, for a user named John Smith, returns:
/C:/Users/John Smith/Documents/ in Windows
/Macintosh HD/Users/johnsmith/Documents/ in macOS
For FileMaker Server, returns:
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/ in Windows
/Macintosh HD/Library/FileMaker Server/Data/Documents/ in macOS
For FileMaker Cloud products, returns:
/opt/FileMaker/FileMaker Server/Data/Documents/
Each part of the path may vary from these examples, so don't rely on the path to follow a particular pattern.
For an example script, see Set Variable script step.