« InDesign 2.0 Word count | Main | Scripting Colour Changes in Illustrator »
InDesign 2.0: Word Count using Visual Basic
By Nick Hodge | January 7, 2002
Adding a Word Count to InDesign 2.0
TextCounter (Win) on Adobe Studio Exchange
One of the features missing from InDesign since its first version is a word count feature. In a fit of quiet rage and sheer stupidity, I wrote this simple Visual Basic 6.0 application that pops up a small window displaying the word count of the current selected story.
There is a Timer named tLexLuthor that waits around for a period of time
![[1008] 01 lois lane timer](http://media.nickhodge.com/legacy/1008.gif)
Just in case the user doesn't want this turned on, there is a status button called bStart that toggles the timer tLexLuthor on and off.
![[1009] 02 lois lane button](http://media.nickhodge.com/legacy/1009.gif)
And finally there is a status field (read only) called lStatus. This is where the current word count is stored.
![[1010] 03 lois lane label status](http://media.nickhodge.com/legacy/1010.gif)
... And when running, this is how it looks.
![[1011] 04 lois lane in action](http://media.nickhodge.com/legacy/1011.gif)
The Visual Basic source that sits behind this small application is as follows:
|
The project and executable is here:Lois Lane example downloadable (3K)
Possibly Related Posts:
- Who Is Nick Hodge?
- Hodge Family History
- Languages I Have Known
- A surprise in InDesign 2.0, InDesign CS and InDesign CS2.
- InDesign 2.0: Photoshop, Duotones into InDesign
Topics: mungenet |














September 5th, 2007 at 6:39 pm
[...] InDesign 2.0: Word Count using Visual BasicNick HodgeScripting in InDesign 2.0 to add word count [...]
September 6th, 2007 at 8:03 am
[...] only a word count: InDesign CS also counts sentences, lines and characters. No more need for InDesign 2.0: Word Count using Visual Basic! The above image depicts a text frame that contains a certain number of characters/words etc, and [...]