Hi all!
I have a question on script variables. In the documentation it is explained that:
"Prior to running a script, operators will first have to link the dummies and parameters to actual elements and values in the DMS. Therefore, it is best to give the variables a meaningful name the operators will be able to work with."
Is there any way that this operator interaction is not necessary? The background is that we would like to execute a script via a task in the scheduler, which has a changing value from a memory file for the parameter.
Best regards and thank you in advance for your inspiring answers!
Daniel
Hi Daniel,
If I understood correctly, you have a memory file defined in the Automation module, and you are using this memory file for your script parameter:
If this is the case, when configuring a scheduled task, the user will need to choose one of the possible values from the memory file:
To avoid this, for example you could remove the script parameter and process the memory file directly in a C# script block. The method GetMemory allows you process the content of a memory file.
Hope it helps.
Hi Daniel,
You might consider designing the script to dynamically retrieve the necessary information (e.g., from a file or memory location) rather than relying on input parameters.
This approach can reduce manual input while still providing the flexibility you need for your use case.
Let me know if this is not possible for your use case. I can try to thing in another solution.
Kind regards,