Question
Iterate over intergertype property
I'm reading through jazz-y's excellent explanation into action manager code:
About halfway down, instead of geting the artboardRect properties I try to look at the layerKind at a bit of text. Only it's not an OBJECTTYPE, but a INTEGERTYPE - so I should be able to loop through it?
var q = " - ";
var prop = "layerKind"; // layerKind - DescValueType.INTEGERTYPE
var r = new ActionReference();
r.putEnumerated(stringIDToTypeID("layer"), stringIDToTypeID("integer"), stringIDToTypeID("targetEnum"));
var d = executeActionGet(r).getObjectValue(stringIDToTypeID(prop));
str = prop + " properties\n";
for (var i = 0; i < d.count; i++)
{
str += typeIDToStringID(d.getKey(i)) + q + d.getType(d.getKey(i)) + "\n";
}
alert(str);
Only, I get general error 8800 which isn't useful to tell me where I'm going wrong.
Any ideas?