This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Smalltalk Scripting Support
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
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.