Ok, that worked. Then $window(status window) returns the properties, no quotes. You can discover that information yourself by doing "//echo -s $active" in the status window, but I didn't discover the latter fact until searching the docs for "status window", which didn't reveal the first command either, by the way.
Thanks! On to muddling through the layout script.