It's not, but you have a great point. I'll add that to the next version.
In the meantime, here's the script. Just copy the below lines, open up Script
Editor, paste, and save the script in the same place as the other Talking
Dashboard ones. It's not tested very much--I wrote it in about fifteen
minutes--but it runs on my machine and doesn't require Yosemite. Be warned
that, if TextEdit is not running when you run this script, the app will launch
itself. Anyway, here is the script:
(* Keywords:
$wordCount: the number of words in the currently open document in TextEdit
$characterCount: the number of characters in the currently open TextEdit
document
$name: the name of the currently open document
*)
set template to "$wordCount words ($characterCount characters) in $name."
set utilities to import("utilities.scpt")
set {wordCount, characterCount, documentName} to {0, 0, ""}
tell application "TextEdit"
set my wordCount to count (words of document 1)
set my characterCount to count (characters of document 1)
set my documentName to name of document 1
end tell
set keywords to {{"$wordCount", wordCount}, {"$characterCount",
characterCount}, {"$name", documentName}}
set template to str_replace(keywords, template) of utilities
tell utilities to speak(template)
on import(filename)
set p to (path to me) as text
set oldDelimiters to text item delimiters of AppleScript
set AppleScript's text item delimiters to ":"
set scpt to load script file (((text items 1 through ((length of (text
items of p)) - 1) of p) & filename) as text)
set text item delimiters of AppleScript to oldDelimiters
return scpt
end import
> On Mar 27, 2015, at 6:37 PM, Jamie Pauls <[email protected]> wrote:
>
> Hello, all,
>
> I understand that a script exists that will allow one to get a word count for
> a document using TextEdit. If someone could kindly point me to this script,
> that would be great. It doesn’t appear to be a part of the Talking Dashboard
> scripts unless I’mm missing something.
>
> Thanks.
>
> Take care and have a great day.
> Jamie Pauls
> [email protected] <mailto:[email protected]>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/macvisionaries
> <http://groups.google.com/group/macvisionaries>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
Have a great day,
Alex Hall
[email protected]
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.