ScriptContext

data class ScriptContext(val settings: Settings, val args: Array<String>, val path: Path, val filePath: Path)(source)

A class to provide global context information for an NSScript execution.

Constructors

Link copied to clipboard
constructor(settings: Settings, args: Array<String>, path: Path, filePath: Path)

Properties

Link copied to clipboard

Arguments with which the script was called.

Link copied to clipboard

Path of the script file.

Link copied to clipboard
val path: Path

Path of the script directory.

Link copied to clipboard

Settings for the NS scripting environment which are applicable within the context of the script execution.