Copy link to clipboard
Copied
Dear Friends,
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
Ks
Copy link to clipboard
Copied
Hi Ks,
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
Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents
or
InDesign ExtendScript API (10.0)
You will save our mutual time.
Once again, I don't want to be rude, just helpful.
Loic