Jeszra is written in the scripting language Tcl/Tk. Individual scripts can be used within Jeszra, either by sourcing them from the customization files »tcledit.tcl«, »tcltest.tcl«, by using »source« from the »shell« or loading Tcl-scripts from the »File« menu entry: »Import Source ...«.
In addition, every user interaction is monitored. Uuse The Script Tool »record« function activate monitoring, whenever repetition is necessary. The Script Tool is located underneath the palettes .
Jeszra uses the Tcl/Tk history mechanism for monitoring. Hence all interactions in the terminal or Jeszra´s own »Shell« are also recorded.
The first Script Tool entry »Record...« initiates and records interactions with Jeszra.
The recording mechanism is based on the Tcl history facility. Activating record simply clears the history and starts a new »history« session. The accumulated history is later analyzed and presented to you as a rough script, for further refinement.
The preference page Scripts inside »Tools«, provides an access method to every script inside the Script Tool . Script Tool is ordinary Goolbar, deprived of the ability to hide any item.
Figure 11.8, “Script Tool Preferences” displays all items stored inside the Script Tool . The 3-column layout item is selected, the contained script can be edited through a double-click or via the »Properties« Button.
Scripts are edited with the customize script dialog seen in Figure 11.9, “Script Editor”. Label, icon and command can be changed through the Figure 11.9, “Script Editor”.
Of course, more can be customized when Jeszra is being used to edit the Script Tool directly. Even the internal toolbar customization dialog can be launched from the shell, as shown in Example 11.12, “Toolbar Editor from the Shell”.
Example 11.12. Toolbar Editor from the Shell
Jeszra: .gestalt customizeToolbar \ [[.gestalt scripts] toolbar]