Is it possible to set the base line offset of an anchored frame with extend script?
I need to set the basline offset for all anchored frames to a certain amount.
I thought I can do that with :
frame.BaseLineOffset = -10; where frame is the the AFrame object but it changes nothing, any help appreciated.

It looks to me that "Distance above Baseline" is not the same as BaselineOffset stated in the object reference under AFrame.
Here is the complete script :
var graphic = null;
var frame = null;
var doc = app.ActiveDoc;
if(doc.ObjectValid())
{
graphic = doc.FirstGraphicInDoc;
if(graphic.ObjectValid() )
{
while(graphic.ObjectValid() )
{
frame = graphic;
if(graphic.ObjectValid()&& graphic.constructor.name == "AFrame")
{
// align the the frame left change the anchor type to uinline and set the baseline to -10 pt
frame.Alignment = Constants.FV_ALIGN_LEFT;
frame.AnchorType = Constants.FV_ANCHOR_INLINE;
frame.BaseLineOffset = -10;
}
graphic = graphic.NextGraphicInDoc;
}
else if (!frame.ObjectValid() || frame.constructor.name != "AFrame")
{
graphic = graphic.NextGraphicInDoc;
}
}
}
}
else
{
alert("No active document or no graphic or anchored frame selected. " +
"Cannot continue.");
}
alert("Script complete.");
