User Guide
633
SPSS Scripting
Facility
By default, each autoscript you create is added to the current autoscript file
(autscript.sbs) as a new procedure. The name of the procedure references the event
that serves
as the trigger. For example, if you create an autoscript triggered whenever
Explore creates a Descriptives table, the name of the autoscript subroutine would be
Explore_Table_Descriptives_Create.
Figure 46-9
New autoscript procedure displayed in script window
This makes autoscripts easier to developbecauseyoudonotneedtowritecodeto
get the object you want to operate on, but it requires that autoscripts are specific to a
given piece of output and statistical procedure.
To Create an Autoscript
E Select the object you want to serve as a trigger in the Viewer.
E From the menus choose:
Utilities
Create/Edit Autoscript
If no autoscript exists for the selected object, a new autoscript is created. If an
autoscript already exists, the existing script is displayed.
E Type the code.
E From the Edit menu, choose Options to enable or disable the autoscript.