VIEW info

view info

This is the same as the command [mk::view info path] except that it operates on view rather than the view indicated by path. Thus it can operate on views that do not have a path.

Returns a list of the properties of view, in column order, with each non-string property decorated with a type-indicating suffix. String-valued properties do not have :S appended to them, even though that bit of regularity would make the return list much easier to parse.

Properties that are themselves views (so-called subviews) are indicated with the suffix :V. The recursive sub-list describing the subview is not generated. This is a distinction between [view info] and [mk::view layout path].

DGP


I find it quite tedious for every caller of [view info] to have to parse the returned value. Wouldn't it be better to offer [view info names] to return simple property names and [view info types] to return the Metakit type codes for the properties?