Does FlexObject expose anchoredObjectSettings?
A scripting question. If I select any anchored object, I can get their position using this:
function main() {
var myAnchoredObject = app.selection[0];
if (!myAnchoredObject.hasOwnProperty("anchoredObjectSettings")) {
alert("The selected item does not support anchored object settings.");
return;
}
var posType = getAnchoredPositionType(myAnchoredObject.anchoredObjectSettings.anchoredPosition);
alert("Anchored Position: " + posType);
}
function getAnchoredPositionType(anchoredPosition) {
switch (anchoredPosition) {
case AnchorPosition.INLINE_POSITION:
return "INLINE";
case AnchorPosition.ABOVE_LINE:
return "ABOVE_LINE";
case AnchorPosition.ANCHORED:
return "CUSTOM";
default:
return "UNKNOWN (" + anchoredPosition.toString() + ")";
}
}
app.doScript(main);
But if the anchored object is a Flex Object, I always get this:
The selected item does not support anchored object settings.
So, is it possible to get the Anchored Object Setting of a FlexObject? Or Adobe forget to give access to this information in the ExtendScript API?

