Hello All,
This is the script that I use for applying condition tag to a paragraph, and it is not leading to crash in my case. Can anyone of you pls share your complete script so that we can take a look into the issue and try to fix it. I have tried the code snippet shared by Oliver and that too is working fine in my case.
doc=app.ActiveDoc
tr= doc.TextSelection
newFmt =doc.GetNamedCondFmt("Comment")
var props = doc.GetTextPropVal(tr.beg,Constants.FP_InCond)
props.propVal.isval[0] = newFmt.id
props.propVal.osval[0] = newFmt
doc.SetTextPropVal(tr, props)
Thanks,
Anchal Arora
Adobe Framemaker Engineering