Mauricio,

Just use the "Set Variable..." script item in the Script Editor and create the four variables before you use them (wherever you want). Then, in your dialog, select the required variable(s). In other script functions, you may use <Ctrl><Right Mouse Button> to open a variable list.

Does this help?

Friedrich