scriptOnly | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack | ||||||
Summary | Specifies whether the stack should be saved as script only which does not retain any objects or custom properties | ||||||
Introduced | 8.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, mobile, server | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Property: behavior Command: create stack Object: stack Glossary: script only stack | ||||||
Description | A script only stack is a stack whose scriptOnly property is true. A scriptOnly stack will save just the script with a single header line declaring the stack name. If the stack has a stack behavior, the name of the behavior stack is also saved to the header line. Any other objects or properties of the stack will not be written to disk. The scriptOnly property has been added to enable scripts to detect and set the file format of the stack. Without this property it is not possible to detect the file format the stack is being saved in without examining the file itself.
| ||||||
Tags | objects |