Why can't I do a word count in Notes?!

How can I count words in the Mac Notes App?


PS The answer is to add a Quick Action to Automator. There is some guidance on OSXdaily - search for "Make a Word & Character Counting Service for All Apps in Mac OS X".


I have posted this because there was an old question that was asking this, and there wasn't an answer...


The script is as follows:


on run {input, parameters}

tell application "System Events"

set _appname to name of first process whose frontmost is true

end tell

set word_count to count words of (input as string)

set character_count to count characters of (input as string)

tell application _appname

display alert "" & word_count & " words, " & character_count & " characters"

end tell

return input

end run

MacBook Pro 13″, macOS 11.4

Posted on Jul 18, 2021 6:51 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 18, 2021 7:25 AM

You can obtain the free WordService tool from the Mac App Store. This is a collection of services and one of these is statistics as shown below, where I selected the words in Notes and right-clicked on that selection and from the contextual menu, choose Services > WordService:Statistics…



When WordService is downloaded from the Mac App Store, it installs but does not activate, several services. You enable the ones that you want in System Preferences > Keyboard > Shortcuts > Services panel.


WordService services will work in any application whose text you have selected beforehand.

Similar questions

4 replies
Question marked as Top-ranking reply

Jul 18, 2021 7:25 AM in response to boustrephon

You can obtain the free WordService tool from the Mac App Store. This is a collection of services and one of these is statistics as shown below, where I selected the words in Notes and right-clicked on that selection and from the contextual menu, choose Services > WordService:Statistics…



When WordService is downloaded from the Mac App Store, it installs but does not activate, several services. You enable the ones that you want in System Preferences > Keyboard > Shortcuts > Services panel.


WordService services will work in any application whose text you have selected beforehand.

Jul 18, 2021 8:45 AM in response to boustrephon

Always good to experiment with Automator solutions. Continue with that curiosity. I and many others have been using and recommending WordService for years, and it would not have survived in the Mac App Store if it were a questionable product.


Post any future Automator or code-related questions in the Mac OS X Technologies community. Use the <> code posting toggle in the bottom toolbar to keep your formatted code separate from your other text.

Jul 18, 2021 8:12 AM in response to VikingOSX

I wasn't really asking the question -- I was just wanting to make sure that there was a better answer that the one that was out there already. However, this is definitely a better answer than the one I found (in terms of ease of installation and in terms of features), so thank you. The only thing I would say is that this is not an Apple product and I am a little cautious about adding third party apps for functions like these. Still - a good response.


I still benefitted from my little exercise -- it was my first time using Automator, so that may open up more avenues for automation for me...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why can't I do a word count in Notes?!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.