new DuSettings(namespace, file)
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 1814
Constructs a new DuSettings instance.
Name | Type | Default | Description |
---|---|---|---|
namespace |
string | DuESF.scriptName | optional A namespace to group your settings. |
file |
File | string | Folder.myDocuments/namespace/namespace_settings.json | optional The file to store the settings |
Properties:
Name | Type | Description |
---|---|---|
namespace |
string | A namespace to group your settings. |
file |
File | The file to store the settings |
data |
Object | The settings as a js object |
Methods
-
load()
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 1867 -
loads data from the settings file
-
reset()
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 1914 -
Reset the settings to their default values (removes the settings file!)
-
save(){boolean}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 1883 -
Saves data to the file.
Warning: DuESF does not check if it has write access on the files, you should check that first using methods specific to the host application.Returns:
Type Description boolean true if the file has been correctly written -
setFile(file)
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 1901 -
Sets the file to be used to save the settings
Name Type Description file
File | string The file or path to the file