Script File Objects
Script File objects

Unlike PRIMER , D3PLOT and T/HIS , REPORTER does not support the Use() function, or JavaScript modules. To help address this, a Script File item has been added, available from REPORTER 19.0 onwards. Script File items have all the features of Script items , except that rather than containing an embedded JavaScript, they point to an external script file. This allows you to edit the script in your preferred editor. Furthermore, since the REPORTER JavaScript environment persists for the duration of the REPORTER session (and is shared by all scripts), you can create one or more Script File items containing any common functions, followed by one or more Script File items that use those functions. This should provide much of the benefits of the Use function and JavaScript modules available in PRIMER , D3PLOT and T/HIS :

For more information on scripting, see Scripting.