• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get content - Insaid Text Frame

Contributor ,
Sep 06, 2016 Sep 06, 2016

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

TOPICS
Scripting

Views

227

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 06, 2016 Sep 06, 2016

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines