I would like an AppleScript .scpt file to determine the character count of any given .rtf file. I'm not sure if this is standard for character counts, but I would like each space character (" ") to also count as one character.
I would like the script to accomplish this, without actually opening the file in TextEdit.
It is important to note that this is a rich text file, not a simple plain text (.txt) file. This fact complicates things. It is not as simple as chopping off the rich text header, because a single .rtf file may contain multiple different types of rich text formatting.
What is the best way to go about this?