Get(TemporaryPath)
Purpose 
Returns the path to the temporary folder that FileMaker Pro uses for the current user, or the path that 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 FileMaker Server, each schedule runs in its own session; once the schedule is completed, the session terminates and the temporary folder is deleted.
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Examples 
In Windows, returns:
/%HomeDrive%/Documents and Settings/{user id}/Local Settings/Temp/S<n> or
/%UserProfile%/AppData/Local/Temp/S<n> or
/%HomeDrive%/WINDOWS/Temp/S<n> (Windows XP)
where %HomeDrive% is an environment variable that returns the name of your home drive on your hard disk.
%UserProfile% is an environment variable that points to the directory where the profile of the current user is located.
S<n> is the name of the folder in which the temporary files are placed (for example, S1); <n> is a number representing the database engine session during which the operation took place.
In Mac OS X, returns:
/<DriveName>/private/var/folders/<2 characters>/<20 characters>++++TI/Cleanup at Startup/S<n>/
where DriveName is the name of your hard disk.
S<n> is the name of the folder in which the temporary files are placed (for example, S1); <n> is a number representing the database engine session during which the operation took place.
The location may vary due to different variables on the OS, but should follow a similar pattern.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas