Bug with Extendscript Reflection object
Hi everyone!
I think I found a bug in Extendscript.
As the docs says "any object has a reflect property.
So for example I wrote a function that returns array of strings that includes all the properties names of any object that are readonly:
function checkReadonlyValues(objToCheck) {
var readOnlyArr = [];
for (var i = 0; i < objToCheck.reflect.properties.length; i++) {
if (objToCheck.reflect.properties.type === 'readonly') {
readOnlyArr.push(objToCheck.reflect.properties.name);
}
}
return readOnlyArr;
}
If I call the function and pass it an `AfterEffects FolderItem` it doesn't return that numItems is a readonly properties.
Also in debug the property numItems type is `readwrite`.
But as you know, `numItems` is a readOnly property.
I checked it in both CS6 and CC15(13.5).
Someone knows why is this happen? or how to avoid it(not a workaround solution)? or just to report a bug, and wait for fix?(where should I post this bug?)
