[JS] [CS3] Finding the longest instance of a paragraph style
I'm pretty new to JS but I'm trying to write a script that will return the longest instance of each paragraph style in a manuscript (which has been imported into InDesign). Currently, my script lists all the paragraph styles found in the document and puts them in a new document. My next thought was to loop through the style names array and find the longest instance.
Could anyone point me in the right direction on how to do this?
Any help is much appreciated. I'm learning a lot reading this forum.
