To get a variable back from EPF to DAI you set it as an Output on the Snippets Called By Action tab (double-click to open Snippet Properties I/O Edit). Make sure to output them in the order expected, they won’t automatically match up names. Drag and drop rows in that Snippet Properties dialogue.
If you have a huge list of variables I would consider changing your methodology. Only pass the variables needed to make logic decisions within DAI and leave the rest of your content in a resource file (CSV, XLSX, whatever). Or perhaps you can have a script who’s only job is to make those decisions for DAI and return the barest essentials.
Hard to guess without knowing a lot more about what you are up to.
Your conversion to a list syntax sounds a bit more complicated than it needs to be, but I can’t say for sure without seeing an example. Have you considered the split function?
put readtext([228,310,1233,354]) into ReadVar
delete all <punctuation> from ReadVar
split ReadVar by " "
I also try to avoid OCR if possible. Have you considered getting the text into the remoteclipboard somehow? Make a triple_click_handler or even a drag and drop? Or a typetext controlkey, “ac”? I find I can usually triple-click any body of text I need, but of course it depends on your situation.