How can I debug a CAL script?
Try "step mode," which allows you to execute a script one command at a time. To turn on step mode, use the Scripts Menu, Command Line to bring up the CAL command window, type "step on" (without quotes) then press Execute, then press Done. Now execute your script. Each command is displayed in the status bar before it executes (with actual values subsituted for variables). Press SPACE BAR to execute the command and go to the next one, or press ESC to stop the script. To go back to normal, type "step off" (without quotes) in the CAL command window.