links to this page:    
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Writing scripts
Last updated at 4:12 pm UTC on 14 January 2006
A Squeak script file can be executed as follows.

If you run "Squeak myImage.image script.st arg1 arg2 arg3", then script.st will be filed in as the image starts up.

arg1, arg2, and so on may be accessed with SystemDictionary>>getSystemAttribute:. The argument to getSystemAttribute: is an integer which determines what is returned:

0 - Virtual Machine name
1 - Image name
2 - Script file name
3 ... n - additional arguments

See System Attributes for details.