Add Instant Word Count Feature to OpenOffice.org Writer

Productivity Sauce
While the Writer's Tools extension for OpenOffice.org is developed and maintained by your truly includes the Visual Word Count tool, it does have one serious drawback: it uses a modal window, i.e., you can't do anything until you close the Visual Word Count window. Fortunately, there is an alternative solution that solves that problem. The Live Word Count macro for OpenOffice.org is written in Python, so it uses a non-modal window which can be opened alongside the current document. To install the macro, create a folder called python in the /home/USER/.openoffice.org/3/user/Scripts directory (where USER is your actual user name), grab the latest version of the script and put it in the created folder. To run the macro, launch OpenOffice.org Writer and choose Tools | Macros | Run Macro. Select then My Macros | wc | wordCount and press the Run button.
Instead of navigating through the menus every single time you want to launch the macro, you can create a menu item for it. To do this, choose Tools | Customize and select the desired menu (e.g., Tools) from the Menu drop-down list in the Menus section. Press the Add button and select the OpenOffice.org Macros | My Macros | wc | wordCount macro. This adds the macro to the selected menu. You can then use the Up and Down buttons to move the created menu item. To change the item's name, press the Modify button, choose Rename, and give the menu item a descriptive name (e.g., Live Word Count). Press OK, and you are done.
Thanks to Leif Lodahl for the tip.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
Ubuntu 25.04 Coming Soon
Ubuntu 25.04 (Plucky Puffin) has been given an April release date with many notable updates.
-
Gnome Developers Consider Dropping RPM Support
In a move that might shock a lot of users, the Gnome development team has proposed the idea of going straight up Flatpak.
-
openSUSE Tumbleweed Ditches AppArmor for SELinux
If you're an openSUSE Tumbleweed user, you can expect a major change to the distribution.
-
Plasma 6.3 Now Available
Plasma desktop v6.3 has a couple of pretty nifty tricks up its sleeve.
-
LibreOffice 25.2 Has Arrived
If you've been hoping for a release that offers more UI customizations, you're in for a treat.
-
TuxCare Has a Big AlmaLinux 9 Announcement in Store
TuxCare announced it has successfully completed a Security Technical Implementation Guide for AlmaLinux OS 9.
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
Visual Word Count
Word count should be in the status bar.