Grapher includes a Script Recorder, accessed through the Automation | Scripts commands. The Script Recorder records all commands as you make them in Grapher. When the script is run, Grapher performs all the steps for you. This is ideal for users that need to perform repetitive tasks but are unfamiliar with automation, for advanced users who do not want to manually enter all of the syntax, or for average users having difficulty with syntax. Check the box next to the View | Display | Script Manger command to display the Script Manager if you would like to view a script while it is recording. Recording must be stopped before editing scripts within the Script Manager.
Check the Include script comments box in the General section of the File | Options dialog to include comments when recording a script.
Click Automation | Scripts | Run to run the script.
Click Automation | Scripts | Stop to end the running script.
Click Automation | Scripts | Record to start recording. The circle will turn red and the script will begin recording in the Script Manager.
Click Automation | Scripts | Stop Recording to stop recording. A Save As dialog will appear, allowing you to save the recorded script as a .BAS file. Click the Save button to save the script or click the Cancel button to close the dialog without saving the script.
Click Automation | Scripts | Pause to pause the recording or the currently running script. Resume recording by clicking the Record button. Resume a paused script by clicking the Run button.
Page units are recorded when recording a script. This is so that items such as Width, Height, or Position are recorded appropriately. When running a recorded script, the page units are set to the recorded units. If other units are desired, delete the Plot.Windows.Item(1).PageUnits line near the top of the script. The page units of the current open plot window are used. This may result in incorrect locations or sizes of objects.
Tutorial - Working with the Script Recorder