Smalltalk Scripting Support
Alan Knight explains that there's already some basic scripting support available for Cincom Smalltalk, if you load the Scripting Support package (and save the resulting image) from the public Store repository. For instance:
There are already some ways to run code from the command line in VisualWorks, e.g. -doit, -evaluate, but they don't entirely do what you want. So this adds the ability to just run a file from the command line, e.g.
vm scripting.im dostuff.st
or, if you have command line arguments, you can do them before the program, and put a -- option to indicate the program file. The program can also treat the rest of the line after it as arguments, which will show up in a variable named "arguments".
There's more detail over there; follow the link for all of it. I'll be loading that up and doing some screencasts on it, startig tomorrow.
Technorati Tags: scripting, cincom smalltalk

