Fellow Scrivener user here – just passing through with a note of accord:
I just wrote a quick & dirty script that gives dialogue word counts (and % of total dialogue) for each character – when given the rtf code of an underlying scriv doc.
Throwing some docs at it and looking at the results suggests to me this would indeed be interesting information to be able to call up!
Did anyone come up with a solution to this question? I know this post is quite old above but I am still looking for the same. I’d like to know a line or word count for just dialogue. Don’t necessarily need specific characters’ count but that would be nice too. Just over all dialogue without stage directions etc would be great. It’s a children’s stage musical so I’d like to know so the directors/ teachers have an idea what the kids are up for.
That script has gotten updated since I last wrote about it* and is now reliable across various script formats.
Here is how it works:
You compile your script to Word using the Script or Screenplay compile format. This has the virtue of tagging all the paragraphs of the output with a paragraph style name corresponding to the script elements.
Open the resulting output doc in Word.
Run the script. The little algorithm I wrote is just an Applescript that trawls through the paragraphs of your script and ignores all but the paragraphs which have the styles Character, Dialogue, Character & Dialogue, or Dialogue (Cont.). It builds a character list from these lines and counts words (ignoring parentheticals).
If you think such a script would be useful to you, I would be happy to post it here. If you are not familiar with Applescript, the .scrpt file can be opened and examined in Apple’s built-in Script Editor app, so you can examine the code before running anything – for your safety and assurance.
Best,
gr
Can it really have been way back in 2016? Seems impossible. How the time flies.
It should not be difficult. All it would have to do is count words between quote marks. Sees an opening quote mark, counts until it gets to a closing quote mark, tallies the results.