Also, check my previous reply where I explain what I'm trying to achieve using "FOR EACH". The lines can't be right after the variable line. I need to replace the line with something else and only then, add the new line at the end
It all depends on how you are actually using that Action to assemble your variable. If you are doing something like the below yes, it would add a return to each line of the variable, including the last line.
I didn't know about the %Return%. Good to know. Thanks
I guess I know what's happening. Since I'm testing this macro, I am displaying the results in a window. For some reason, that window doesn't add the extra line at the bottom, but when I set the clipboard to the variable and then paste the results into TextEdit, for example, it adds the extra line at the bottom, even when I use \r
So it seems that the issue is related to how the display window shows the results.
If your master variable is changing by having more lines added or deleted from it, I would suggest not adding your double returns until you need them.
Keep your master variable as simple as possible, just the data on lines or separated by another character and only add in the double returns (using a different variable) at the point you need them in your Macro.