Functions Reference

Table Of Contents
FILEMAKER FUNCTIONS REFERENCE 93
Get(DocumentsPathListing)
Purpose
Returns a list of all the files and folders in the Documents folder returned by the
Get(DocumentsPath) function.
Format
Get(DocumentsPathListing)
Parameters
None
Data type returned
text
Originated in
FileMaker Pro 10.0
Description
Each pathname in the Documents folder is listed separated by a line break. Files and folders are
named according to FileMaker
Pro naming conventions.
Use Get(DocumentsPathListing) with the Import Records script step and Export Records
script step to determine if a file exists in the Documents folder before using the Open File script step
to open the file.
Get(DocumentsPathListing) ensures that multiple scripts can safely read from
and write to the same FileMaker
Pro database.
Note For information on how functions evaluate differently on the host versus the client, search the
FileMaker Knowledge Base available at
www.filemaker.com/kb.
Examples
For FileMaker Server, returns the following pathnames:
In Windows Vista:
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/lastmonthsales.xls
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/forecastsales.xls
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/SAP
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/SAP/sap001.txt
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/SAP/sap002.txt
In the Mac OS:
/MacintoshHD//Library/FileMaker Server/Data/Documents/lastmonthsales.xls
/MacintoshHD//Library/FileMaker Server/Data/Documents/forecastsales.xls
/MacintoshHD//Library/FileMaker Server/Data/Documents/SAP
/MacintoshHD//Library/FileMaker Server/Data/Documents/SAP/sap001.txt
/MacintoshHD//Library/FileMaker Server/Data/Documents/SAP/sap002.txt