Skip to content

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() -> dict

Arguments ​

None.

Return ​

TypeDescription
dictA 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"])

Python automation for jailbroken iOS