Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Applying a condition to a paragraph

$
0
0

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


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>