Smart Card Shell

Persistent Configuration Settings

Persistent configuration informations are available to scripts as properties of the _scsh3 object. This object is instantiated in the default CONFIG.JS file and filled with values from the SETTINGS.JS file.

Persistent settings can be set and saved to disk using the _scsh3.putProperty() method. This method accepts a key and a value and saves the updated configuration into a new SETTINGS.JS file. The SETTINGS.JS file is placed in the workspace directory by default.

Example: To use a specific card terminal in a new card object, you could use

    var card = new Card(_scsh3.reader);

Pre-defined configuration fields

The following configuration elements are available

Key Value
reader Name of the card reader selected in Options/Reader Configuration