tempName

returns a unique file name in the folder the operating system uses for temporary files.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security: disk

# Syntax

the tempName

# Examples

the tempName

put the tempName into testDataPath

# Description

Use the tempName function to find an appropriate place to put a temporary file.

You can use temporary files to store intermediate data, downloaded URLs, and other material that is more conveniently placed in a file but does not need to be saved permanently.

Using the tempName function does not create the file, only gets a suggested file name. Use the open file command to create the file.

The file name returned by the tempName function is one that doesn't exist, so you can use it safely. If you need to create another file, use the tempName function again to obtain a new file name.

The location of the temporary files depends on the operating system. Each operating system provides its own location for temporary files.

# Tags

# See

- **keyword:** file - **property:** filename - **command:** rename, open file, create folder - **function:** specialFolderPath, files - **control structure:** function - **glossary:** absolute file path, command, return, folder