Recording Actions for a Script

Click the Record icon to record scriptable actions in Discovery, which are then written as code in the Script Editor. The type of selection that is chosen will affect how the script is recorded.
Note: The easiest way to learn the scripting API is to use the record option while performing your operations and then modify the recorded script as appropriate.