Script Manager

The Script Manager function allows you to manage embedded Lua scripts of inmation objects. Local copies of scripts can be saved an then edited using your choice of script editor. Any changes made to the local copy can then be synced back to the object by uploading the changes to system:inmation. To open, click on Script Manager in the Options menu.

Script Manager Display
Figure 1. Script Manager Display

The Script Manager display is a grid display that you can drag objects from the I/O model onto. Any Lua scripts will be added to the table, populating the columns of the table.

  • Object - Path to the Object

  • Property - Property name of the embedded script: If the property is script library, the name have following syntax: <PropertyName>:<LibraryName>

  • Local Path - Path to the local copy of the script file (the script file will only be created in the path location when the script is downloaded)

  • Info - Contains current status of script (this column will be populated when an action is performed)

To populate the table, drag some objects with embedded Lua scripts from the I/O model into the Script Manger display.

Script Manager Display with Objects
Figure 2. Script Manager Display with Objects

Alternatively, you can import the table data by clicking on the import icon: TIP:, and selecting an Excel, JSON or CSV file from disk.

Clicking on the "Download" button in the menu bar will create a local copy of the Lua script file in the location specified in the "Local Path" column.

Clicking on the "Upload" button in the menu bar will upload the local copy of file and add it to the object specified in the "Object" field of the table.

Clicking on the "Verify" button: TIP:, checks if any changes have been made to the local copy of the file (or the object). This will display a message in the Info column of the table. Possible messages are:

  • “File has been changed” - means that script on local disk was changed

  • “Object has been changed” – means that script in inmation object was changed

  • “Modified” – means that change was made, but it is unknown where (in object or in File)

  • “No changes” – means that no changes was made

  • "File not found" – means there is no local copy of the file yet (not downloaded)

Info Column of Script Manager Table
Figure 3. Info Column of Script Manager Table