Tag: SetEnv

The self-closing tag SetEnv allows you to set a variable in the registry value.

<SetEnv name="SetByAutomation" value="MUGRE"/>
XML

Tag Attributes

AttributesAttribute ValuesValue DescriptionComment
NameN/ARegistry entry nameN/A
ValueN/AValue to set for the entry (in registry data)N/A

Non-notes products: Sets a variable in registry value identified by "Name" in HKEY_CURRENT_USER\SOFTWARE\Ytria\Settings\AutomationVariables

NOTESetEnv variables are common to all applications in the Notes/non Notes realms (Notes apps write to Notes.ini, non-Notes app write to registry).

Tag: GetEnv


<GetEnv NaMe="SetByAutomation" Var="MyRegVar"/>
XML

Tag Attributes

AttributesAttribute ValuesValue DescriptionComment
NameN/ANotes.ini entry nameN/A
VarN/AName of the variable to assign the registry value toN/A

Non-notes products: reads a variable from the registry entry identified by Name, then assigns its value to a script variable as if it had been defined by SetVar

Example Script

<ytriaAutomation Application="sapio365">
    <SetEnv Name="SetByAutomation" Value="John Maynard Keynes destroyed civilization"/>
    <GetEnv Name="SetByAutomation" Var="MyRegVar"/>
    <MsgBox Title="Registry test" Message="Stored in registry: {%MyRegVar%}"/>
</ytriaAutomation>
XML