stacks

returns a list of stack files that contain an open stack.

# Metadata

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

# Syntax

the stacks

# Examples

the stacks

# Description

Use the stacks function to find out which stack files are open.

Since unsaved stacks have no file name, the file names of unsaved stacks are not included in the list. Instead, each unsaved stack is represented by a blank line in the list.

The file paths of substacks are included, but the stack names themselves are not. This means that if more than one stack in a file is open, that file's path appears more than once in the list returned by the stacks function.

The list includes any open LiveCode windows (such as the message box and menu bar). It also includes stacks that have been opened during the current session and then closed, unless the stack's destroyStack property is set to true.

# Tags

# See

- **keyword:** line - **control structure:** function - **object:** stack - **function:** stacks, mainStacks - **glossary:** property, stack file, file path, return