Appearance
script
script.config()
Get the saved configuration for this script.
TIP
Users can configure a script by choosing Configure in its action sheet.
python
script.config() -> dictArguments
None.
Return
| Type | Description |
|---|---|
| dict | A dictionary mapping each config id to its saved value. |
Example
python
from catscript import script, sys
config = [
{
"id": "name",
"type": "input",
"label": "Name:",
"value": "",
}
]
if __name__ == "__main__":
sys.log(script.config()["name"])