How to pass list of window names in a string to TileWindows

I have a Macro that creates a bunch of graphs with known names. I push the names into a string and separate each window name with a comma. Then at the end of the macro I try to call TileWindows and pass in the string as the list of windows. But all I get is an error that it needs the name of a window.

When I try the same operation on the command line it also fails with the error "expected name of target window"

Is it possible to call TileWindows with a string list from a Macro, or is this just something that can't be done?
phardman wrote:
Is it possible to call TileWindows with a string list from a Macro, or is this just something that can't be done?


I don't think this is possible, but you can use Execute for this:

String sWindows = "Graph1, Graph2, Graph2"
String sExecText = "TileWindows " + sWindows
Execute sExecText


This will work from a Macro.