Tasks can be automated in Surfer using Golden Software's Scripter program or any ActiveX Automation-compatible client, such as Visual BASIC. A script is a text file containing a series of instructions for execution when the script is run. Scripter can be used to perform almost any task in Surfer. You can do practically everything with a script that you can do manually with the mouse or from your keyboard. Scripts are useful for automating repetitive tasks and consolidating a sequence of steps. Scripter is installed in the same location as Surfer. Refer to the Surfer Automation help book for more information about Scripter. We have included several example scripts so that you can quickly see some of Scripter's capabilities.
To run a sample script file:
Open Scripter by navigating to the installation folder, C:\Program Files\Golden Software\Surfer 14\Scripter. If you are running a 32-bit version of Surfer on a 64-bit version of Windows, navigate to C:\Program Files (x86)\Golden Software\Surfer 14\Scripter. Right-click on the Scripter.exe application file and select Run as administrator.
Choose the File | Open command.
Select a sample script .BAS file. These are located in the C:\Program Files\Golden Software\Surfer 14\Samples\Scripts folder or the C:\Program Files (x86)\Golden Software\Surfer 14\Samples\Scripts folder, if you are running a 32-bit version of Surfer on a 64-bit version of Windows.
Click the Script | Run command and the script is executed. Most sample scripts open Surfer and display a map in the plot window.
Introduction to Scripter