

The script counts all the words or characters below a heading until it reaches the next heading.
#WORD COUNTER FOR GOOGLE DOCS UPDATE#
If you want to run it right away, select Word Count > Update Word/Character Counts. The script should now be fully installed. You should see a new menu named "Word Count" in your Google Docs window. When you reach the permissions screen, select "Allow". If you are presented with this screen, select "Advanced" at the bottom-left and then "Go to Untitled project (unsafe)". (If you are unfamiliar with Google Apps Script permissions, you can read a short explainer below.)Īfter selecting "Continue", you may come to a screen that says "Google hasn't verified this app". Since this is the first time you are using the script, it will ask you for permissions. This starts the automatic count which updates every minute, and ensures the automatic count re-starts if needed when the document is opened. Open this drop-down, select 'createOnOpenTrigger', and then select 'Run'. To the right of the icon is a function drop-down (it will probably say 'headingWordCount'). You can rename the project by selecting its name at the top of your screen. Open the script editor from your Google Doc (Tools > Script editor).Ĭopy the headingwordcounter.gs script, paste it into the script editor, and select 'Save'.Īt this point, it is also a good idea to rename the script project from 'Untitled project' to a name that is the same as or similar to your Google Doc. To use the script, you will have to add it to your Google Doc. A Google Docs script for grant writers that gives a word count for the text beneath each heading if the heading indicates a word limit.
