Global variables, and Modules — function, constants collections
In TeXworks scripting you can store basic structures like stings and possibly dialogues as in memory objects between scripts being run.
All global objects do not automatically persist when the User closes Tw.
There ar two main types of Global objects, ones that are as it were attached to the script name, and ones that could be considered as attached to the application above scripting.
Ones attached to the script name can only be accessed from within running instances of that particular script.
Global objects managed by the application can be accessed from within any running script.
For details see Globals
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents