Skip to main content
Liphou
Inspiring
June 18, 2014
Answered

[JS] numbering value Paragarphe

  • June 18, 2014
  • 1 reply
  • 515 views

Hello,

Is it possible to retrieve the value of a numbered paragraph?

Yours




Bonjour,

Est-il possible de récupère la valeur d'un paragraphe numéroté ?

Bien à vous

This topic has been closed for replies.
Correct answer Laubender

@Philippe – yes. I suppose you mean the value of the number.

Select some text of a single paragraph and run this snippet:

alert(app.selection[0].paragraphs[0].numberingResultNumber);

numberingResultNumber will return a Number, not a String.

Uwe

1 reply

LaubenderCommunity ExpertCorrect answer
Community Expert
June 18, 2014

@Philippe – yes. I suppose you mean the value of the number.

Select some text of a single paragraph and run this snippet:

alert(app.selection[0].paragraphs[0].numberingResultNumber);

numberingResultNumber will return a Number, not a String.

Uwe

Liphou
LiphouAuthor
Inspiring
June 18, 2014

Super! thank you

Community Expert
June 18, 2014

Philippe – Do you know Jongware's ExtendScript DOM documentation for InDesign?

Adobe InDesign CS6 (8.0) Object Model JS: Paragraph

Scroll through to "n" like "numberingAlignment" etc.pp. :-)

Also recommended, the CHM file versions for better searchability offline at:

Indesign JavaScript Help

Uwe