my task is find and change the font size of the text in the current document..
found text may be paragraph,line,words,etc.,
ex: find = 12pt change = 20pt
the task is find text which have the font size "12pt".. once found change its size to "20pt"
leave my script.. i have tested with your code..
var doc, textRange, prop;
doc = app.ActiveDoc;
textRange = doc.TextSelection;
prop = new PropVal ();
prop.propIdent.num = Constants.FP_FontSize;
prop.propVal.valType = Constants.FT_Metric;
prop.propVal.val = 8 * 65536;
doc.SetTextPropVal (textRange, prop);
i have changed 8 to 10,9,12 and so on.. some times font size changed but some times it did not worked fine