Reference > Functions reference > Get functions > Get(TemporaryPath)
 
Get(TemporaryPath)
Purpose 
Returns the path to the temporary folder FileMaker Pro uses for the current user, or the path FileMaker Server uses on the system.
Format 
Get(TemporaryPath)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 9.0
Description 
The temporary folder name begins with S, followed by a number representing the session of the database engine during which the operation took place. Because your operating system controls the location of temporary files, the exact path returned may be different from the examples shown. The actual path returned also depends on which product (FileMaker Pro or FileMaker Server) is executing the function.
In FileMaker Pro, the temporary folder and any files placed in it are deleted when FileMaker Pro is terminated. In server-side scripts, each script runs in its own session; once the script is completed, the session terminates and the temporary folder is deleted.
Notes
In FileMaker WebDirect, this function is not supported and returns an empty string.
Examples 
Returns:
Windows: /C:/Users/username/AppData/Local/Temp/S10/
OS X: /Macintosh HD/var/folders/r8/k3_nw76d6t95mh6cf3d21fpc0000gn/T/S10/
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 Perform Script On Server script step.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas