AppleScript: Word Count, anywhere

Sometimes one needs to count the number of words and characters of text that we’ve written.

Here’s a small script to do just that:

set nChars to count (the clipboard)
set nWords to count words of (the clipboard)
 
display dialog "Characters: " & nChars & "
Words: " & nWords

Use Script Editor and paste the above code. Then save it to your scripts folder and every time you want to have word count just copy the text and invoke the script.