Squeak scripts in UNIX
Keith Hodges
keith_hodges at yahoo.co.uk
Thu Feb 15 05:53:44 UTC 2007
This has been tested on linux, but it looks like some help is needed to
get it working on mac osx.
Starting squeak like this:
#squeak Squeak3.9-final-7067.image http://installer.pbwiki.com/f/IBS.st
Installer url=http://squeak310.pbwiki.com/Essential39Fixes
SmalltalkImage save=squeak.image +quit
Note: When this script is running you will have to push the proceed
button manually for now. This will give you an image that can do a
number of new things.
1. Fixes the scripts cant be local files bug.
#squeak -- test.st
2. Scripts can still be urls
#squeak -- http://installer.pbwiki.com/f/test.st
3. Scripts can invoke specific functionality of classes which implement
launchFrom:
e.g.
#squeak -headless -- MCWorkingCopy report=workingCopies +quit
#squeak -- SystemNavigation report=printCategoriesAndClasses to="*.txt"
+quit
#squeak -headless -- Script print="2+2"
#squeak -headless -- Script eval="stdout nextPutAll: 'hello world'; cr."
on an image with seaside
#squeak -headless -- WAKom start=8080
I havent tried this with a KernelImage yet..
enjoy
Keith
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
More information about the Squeak-dev
mailing list
|