Back to Notenik Docs


The Notenik Knowledge Base

10. Getting Data Into and Out of Notenik ↑

10.8 Record and Play Scripts

Notenik can record and play a script file that will execute a series of data transformations. Data can be input from one or more Notenik Collections and/or from tab-delimited or comma-separated files. The input data can be sorted and filtered using any of the fields contained within the data. The data can then be used as input to a Template file, or output to a new tab-delimited or comma-separated file.

See the article on Script Files for a complete description of a Script file.

Place one or more script files within the reports folder for a Collection, and these files will then become available as Reports.

Scripts will be executed within a separate Scripter window. You can open this window directly by selecting it from the Window menu.

You may also open the Scripter window by selecting a script to be run with the Play Script command beneath the Transform menu.

You may also rerun the last script played by selecting Rerun Last Script beneath the Transform menu. There must be a previous script played during the current Notenik session, before you can perform a Rerun. Note that the Rerun command will immediately run the script, without waiting for any further commands or button presses.

The Scripter window can be used for a number of different functions.

  1. Play a script file that already exists.

  2. Start and stop recording of a new script file.

  3. Direct execution of actions to be recorded within a new script file.

In all of these cases, the scripting actions and results will be displayed within the lower portion of the window.

The first five fields at the top of the Scripter window — Module, Action, Modifier, Object and Value — correspond directly to the columns in a Script file. These fields should generally be entered from left to right, since earlier selections will modify the options available in later fields.

The next column, identified with the ‘@’ symbol, allows you to select a local file whose path is to be entered in the Value field.

The final column, labeled “Go” will cause Notenik to try to execute the command that has been entered into the first five fields, and will record the command, if you are currently recording a Script.

Note that there are Script commands that can be entered here that will not be found within the Script file spec, since these commands are provided to allow the recording and playing of Script files, but cannot be recursively executed from within a Script file. For these commands, the Module field is ‘script’. The available Actions are as follows.


Next: Query Builder