When writing a script, we start with the
Recorder (
Plugins > Macros > Record…), and then modify the automatically created code by redefining the variable names and by using methods (functions belonging to objects) that are much more customizable than the default equivalent plugins.