Some code I can run to test what you are doing. The macro I sent you works when used I instructed. You are surely using it in some other way. I need to see (and try) what you do.
Link
Note the col global variable at the top of the macro, and the path you need to change in the macro’s list_files function. The main function is at the bottom and the relevant functions to this bug are near the bottom. I’ve thrown your macro in but it’s not working. I’m going to check the arrays real quick.
I wanted to call your macro earlier because it clearly worked when calling the macro, but not when I pasted your macro into mine. The problem was that I couldn’t reference things like “gr” and “color” because those were declared in c and not in root. This is why I was wondering if I could execute a macro in a programmatic way.