Script

Documentation Alma (english) Index | Home
Version: 0.29
Date: 2001-03-05
Author: Guillaume Desnoix
The documentation of the software named Alma is protected by copyright according to the laws of the french state. Any reproduction (copy, mirror, printing, ...) is forbidden without a written autorisation from the author. Every one can read it freely (and only) on this web site www.memoire.com.

Presentation

Introduction

A script is a small program which doen't need to be compiled and can be executed by direct interpretation. An interpreter analyses its instructions and execute them one by one, procuring a high interactivity.

Integration in Alma

Alma has an interface to some script interpreters. It means you can write scripts and execute them in Alma. It gives to Alma an important extensibility because it is possible to add:

Available interpreters

Half a dozen of interpreters are already available. But some of them are not perfectly integrated (mainly because of threads and streams problems). For this reason, they are not available in the menu. The two recommanded interpreters are Acto et Python.

Acto

Present state: stable, recommanded

Its princip is to send directly some commands to Alma. ActionEvents are generated and sent to the main ActionListener.

Limited list of commands
FileEditionScriptsWindows
CREER OUVRIR(?) REOUVRIR(?) ENREGISTRER ENREGISTRERSOUS FERMER IMPRIMER QUITTER DEBUTER DEFAIRE REFAIRE COUPER COPIER COLLER DUPLIQUER TOUTSELECTIONNER RECHERCHER REMPLACER PREFERENCES SCRIPT(?) PLEINECRAN CASCADE MOSAIQUE RANGER_ICONES RANGER_PALETTES ECHANGER_COLONNES VISIBLE_SPECIFICBAR VISIBLE_LEFTCOLUMN VISIBLE_RIGHTCOLUMN VISIBLE_STATUSBAR
HelpProjectModel.
AIDE AIDE_INDEX INDEX_ALPHA INDEX_THEMA TEXTE_LICENCE WWW_ACCUEIL AIDE_CONTEXTUELLE APROPOSDE OUVRIRPROJET ENREGISTRERPROJET EXECUTERPROJET REINITIALISERPROJET ANALYSER GENERER CONFIGURER MESSAGE ARBRE_MODELE PROJET_TABLE PATRON_CREER RELATION_CREER CONDITION_CREER PATRON_CONSTRUIRE RELATION_CONSTRUIRE CONDITION_CONSTRUIRE GRAPHE_CREER .

Beanshell

More precisely: Java-like
Present state: unstable

Fiji

More precisely: Forth
Present state: unstable

For those who appreciate Forth, Fiji is a good choice...

Pnuts

Present state: unstable

Some people like it.

Python

Present state: stable, recommanded

Surely on of the best scripting language, well integrated in Alma. If you hesitate which interpreter to use, try this one !

Rhino

More precisely: Javascript
Present state: unstable

Rhino is a good Javascript interpreter but I have some problems with th thread management. To use only on the command line.

Silk

More precisely: Scheme
Present state: stable

Difficult access to Alma.

Utilisation

Graphical mode

Choose in the menu an interpreter. A terminal should appear in which you can enter your commands. Click on the Execute button to launch some saved script.

Command line

Two options are available on the command line:

Example

java com.memoire.alma.AglMain --script Python --exec agl-simple-script.py