executeScript_Sandbox to add a part of text in a variable


I should add some text to the content of a variable.

My variable contains the value of a domain name

I should add the dot with extension

Example from google I should get google (dot) com

STORE | Google | Var

I need to add in Var value .com to have

Var = Google (dot) com


This is the solution, I didn’t remember it’s been a long time since I wrote it

Yours is a nice solution to append strings!

For general info see here: string handling

1 Like

Hi @ulrich

There is another solution that I remember researching years ago and it’s based on executescript this is the code

  "Name": "AAAA",
  "CreationDate": "2023-1-29",
  "Commands": [
      "Command": "store",
      "Target": "Google",
      "Value": "Var1",
      "Description": ""
      "Command": "executeScript_Sandbox",
      "Target": "return(${Var1}) +\". com\"",
      "Value": "Var2",
      "Description": ""
      "Command": "echo",
      "Target": "${Var2}",
      "Value": "",
      "Description": ""


  • [status]

Playing macro AAAA

  • [info]

Executing: | store | Google | Var1 |

  • [info]

Executing: | executeScript_Sandbox | return(${Var1}) +“. com” | Var2 |

  • [info]

Executing: | echo | ${Var2} | |

  • [echo]

Google. com

  • [info]

Macro completed (Runtime 1.05s)