GetScriptContext Method (Python)

Returns an SpssScriptContext object that allows you to determine the context in which a script is being run--as an autoscript, or not.

  • When the script is being run as an autoscript, the returned SpssScriptContext object provides access to the output item that triggered the autoscript as well as the associated output document.
  • When the script is not being run as an autoscript, GetScriptContext returns None.

Syntax

SpssScriptContext=SpssClient.GetScriptContext()