• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
Locked
0

Word count in C++

Explorer ,
May 11, 2020 May 11, 2020

Copy link to clipboard

Copied

Hi,

I have a script to add word count in JavaScript but I don't know how to implement the count values in C++. Hereby I have attached the JavaScript code which I need to convert C++ for developing our own plugin. Can someone guide me to implement the code in C++.
var wordCount = 0;
for (var i = 0; app.activeDocument.stories.length > i; i++)
wordCount += app.activeDocument.stories[i].words.length;

Nithu
TOPICS
How to , SDK

Views

582

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
Community Expert ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

See the following discussion

https://community.adobe.com/t5/indesign/how-to-add-word-and-image-count-values-in-c/td-p/11108356?pa...

Also are you somehow related to the following user

https://community.adobe.com/t5/user/viewprofilepage/user-id/17346274

 

It seems like both of you have the same questions, do you guys work in the same team or is it a coincidence that both of you seem to be having the same issues?

 

-Manan

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
Explorer ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

Hi Manan,

thanks for your reference.It works fine.And it is an coincidence and for the first time I don't notice the post.

Nithu

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
Adobe Employee ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

LATEST

duplicate thread/spam, locked

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