Problems accessing properties of "window" class in System Prefences

Ilya Shebalin

Whenever I try to refer to properties of the class «window» of Processes Suite "System Events» raises an error despite said properties being part of the dictionary for «window» element. So, even though «visible» is there the line «return visible of window 1 of process TheProcess» (the process is active and has its windows opened) returns «error number -1728 from visible of window 1 of process TheProcess». Now getting the value of the property «properties» returns coherent results but (1) the property is not listed in the Dictionary (2) the set of values it represents doesn’t include all the properties of the class «window» as per the dictionary. What gives?