How to get applied paragraphs style contents in the insaid of naming text frame? my code is below:
var curDoc = app.activeDocument; var tableFrameNameCurr = curDoc.textFrames.itemByName("BLK_T1"); var contents = tableFrameNameCurr.paragraphStyles.item('jrnlFigCaption').contents; alert(contents);
Please suggest friends,
Thanks in Advance
Don't misunderstand me but you are used to ask questions that certainly show you are willingful to write code but in the same time reveal that you obviously spare yourself the effort of understanding the InDesign Object Model.
In your case, you are calling a contents property on a paragraphStyle instance. Are you sure this object has this property ? If you get used to work with great tools such as
You will save our mutual time.
Once again, I don't want to be rude, just helpful.