Function for word count in Google Docs Apps Script
问题 Is there a method in Google Apps Scrips that returns the word count from a Google Document? Lets say I'm writing a report that have a particular limit on word count. It's quite precise and it states exactly 1.8k - 2k words (yes and it's not just a single case, but many...) In Microsoft Office Word there was a handy status bar at the bottom of the page which automatically updated the word count for me, so I tried to make one using Google Apps Scrips. Writing a function that rips out whole text