Fwd: If python goes Etoys,
let's go scripting then - with the best IDE for creating and a
clean license for running(!) scripts
gaelli at emergent.de
Thu Aug 24 13:11:31 UTC 2006
> It is amusing that everybody is interested in defining the language,
> but nobody seems to want to define the proper class library for a
> scripting system. The important part is string matching and I/O, not
> the format for the language. Make a script be the same as a
> workspace, except that there is an automatic "do it" on the entire
Masashi answered this question yesterday partially, but as a reply to
the "close set" of adresses of my original mail.
Please find his answer below.
>> What was missing were more practical, readibly-accessible libraries
>> to deal with files etc. For that I simply used regular Smalltalk
>> code, but for example I did not add anything specific to know about
>> the folder you were in and do something useful there. So while you
>> could do:
>> c:\>vwscript " 'myfile.txt' asFilename writeStream nextPutAll:
>> 'Hello' "
>> it was a bit more tedious to start enumerating files etc.
> I developed FileMan package for handling multi files easily.
> In FileMan, you can write such kind of code.
> "ex1. Write 'Hello' to a file 'myFile.txt'"
> 'myfile.txt' asFileEntry fileContents: 'Hello'.
> "ex2. Enumerate all .image files in the current directory"
> '.' asDirectoryEntry filesMatches: [:each | each name endsWith:
> Also, Yamamiya-san had once developed Folktale, which provides a
> command shell
> interface for a headless Squeak.
> Just FYI.
> [:masashi | ^umezawa]
More information about the Squeak-dev