Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-30 Thread Charlie Doremus


Aloha, 
Charlie



 On Mar 29, 2015, at 1:53 PM, Chris Moore chris.w...@gmail.com wrote:
 
 Hello,
 How would you run this script from within textEdit?  Would you assign it to a 
 hot key?
 Chris
 On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 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
 jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 --
 Have a great day,
 Alex Hall
 mehg...@icloud.com
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-30 Thread Alex Hall
Be advised that your message appears blank.
 On Mar 30, 2015, at 5:42 AM, Charlie Doremus giantdolp...@gmail.com wrote:
 
 
 
 Aloha, 
 Charlie
 
 
 
 On Mar 29, 2015, at 1:53 PM, Chris Moore chris.w...@gmail.com 
 mailto:chris.w...@gmail.com wrote:
 
 Hello,
 How would you run this script from within textEdit?  Would you assign it to 
 a hot key?
 Chris
 On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com 
 mailto:mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 
 mailto:jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
 mehg...@icloud.com mailto:mehg...@icloud.com
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 

Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-30 Thread Alex Hall
Here's the link to the zip file:
https://dl.dropboxusercontent.com/u/17005121/talking%20dashboard.zip
 On Mar 30, 2015, at 10:03 AM, george b gbma...@gmail.com wrote:
 
 Where do I find the talking dashboard, please
  
 From: macvisionaries@googlegroups.com 
 [mailto:macvisionaries@googlegroups.com] On Behalf Of Alex Hall
 Sent: Sunday, March 29, 2015 20:55
 To: macvisionaries@googlegroups.com
 Subject: Re: Looking for a Script to Give a Word Count in TextEdit
  
 You'd assign it to a commander, at least that's the easiest way I can think 
 of. You'll also need the Talking Dashboard scripts, since that zip file 
 contains the utilities this one uses.
 On Mar 29, 2015, at 7:53 PM, Chris Moore chris.w...@gmail.com 
 mailto:chris.w...@gmail.com wrote:
  
 Hello,
 How would you run this script from within textEdit?  Would you assign it to 
 a hot key?
 Chris
 On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com 
 mailto:mehg...@icloud.com wrote:
  
 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 jamiepa...@gmail.com 
 mailto:jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
  
  
  
  
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
 mehg...@icloud.com mailto:mehg...@icloud.com
  
  
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.
 
  
  
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 

RE: Looking for a Script to Give a Word Count in TextEdit

2015-03-30 Thread george b
Where do I find the talking dashboard, please

 

From: macvisionaries@googlegroups.com [mailto:macvisionaries@googlegroups.com] 
On Behalf Of Alex Hall
Sent: Sunday, March 29, 2015 20:55
To: macvisionaries@googlegroups.com
Subject: Re: Looking for a Script to Give a Word Count in TextEdit

 

You'd assign it to a commander, at least that's the easiest way I can think of. 
You'll also need the Talking Dashboard scripts, since that zip file contains 
the utilities this one uses.

On Mar 29, 2015, at 7:53 PM, Chris Moore chris.w...@gmail.com 
mailto:chris.w...@gmail.com  wrote:

 

Hello,

How would you run this script from within textEdit?  Would you assign it to a 
hot key?

Chris

On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com 
mailto:mehg...@icloud.com  wrote:

 

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 jamiepa...@gmail.com 
mailto:jamiepa...@gmail.com  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

jamiepa...@gmail.com mailto:jamiepa...@gmail.com 

 

 

 

 

-- 
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 macvisionaries+unsubscr...@googlegroups.com 
mailto:macvisionaries+unsubscr...@googlegroups.com .
To post to this group, send email to macvisionaries@googlegroups.com 
mailto:macvisionaries@googlegroups.com .
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

 


--

Have a great day,

Alex Hall

mehg...@icloud.com mailto:mehg...@icloud.com 

 

 

-- 
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 macvisionaries+unsubscr...@googlegroups.com 
mailto:macvisionaries+unsubscr...@googlegroups.com .
To post to this group, send email to macvisionaries@googlegroups.com 
mailto:macvisionaries@googlegroups.com .
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

 

 

-- 
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 macvisionaries+unsubscr...@googlegroups.com 
mailto:macvisionaries+unsubscr...@googlegroups.com .
To post to this group, send email to macvisionaries@googlegroups.com 
mailto:macvisionaries@googlegroups.com .
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

 


--

Have a great day,

Alex Hall

mehg...@icloud.com mailto:mehg...@icloud.com 

 

-- 
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, 

Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-29 Thread Alex Hall
You'd assign it to a commander, at least that's the easiest way I can think of. 
You'll also need the Talking Dashboard scripts, since that zip file contains 
the utilities this one uses.
 On Mar 29, 2015, at 7:53 PM, Chris Moore chris.w...@gmail.com wrote:
 
 Hello,
 How would you run this script from within textEdit?  Would you assign it to a 
 hot key?
 Chris
 On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com 
 mailto:mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 
 mailto:jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
 mehg...@icloud.com mailto:mehg...@icloud.com
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
mehg...@icloud.com

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at 

Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-29 Thread Chris Moore
Hello,
How would you run this script from within textEdit?  Would you assign it to a 
hot key?
Chris
 On Mar 27, 2015, at 8:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 
 mailto:jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
 mehg...@icloud.com mailto:mehg...@icloud.com
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-28 Thread Ray Foret Jr
All you have to do is Google or Bing it and it will come right up.

Sincerely,
The Constantly Barefooted Ray

Still a happy Mac, Verizon Wireless iPhone 6+ and Apple TV user!

Sent from my Mac,
the only computer with full accessibility for the blind built-in

 On Mar 27, 2015, at 9:11 PM, May mcdonald@gmail.com wrote:
 
 And what widget is that?
 
 May and LD Luna Moon!
 www.canadianlynx.ca
 
 On Mar 27, 2015, at 9:35 PM, Ray Foret Jr rforet7...@comcast.net wrote:
 
 I have a wigit that I can use to give me a word count in Text Edit if I 
 wanted it to. 
 
 Sincerely,
 The Constantly Barefooted Ray
 
 Still a happy Mac, Verizon Wireless iPhone 6+ and Apple TV user!
 
 Sent from my Mac,
 the only computer with full accessibility for the blind built-in
 
 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 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
 jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 --
 Have a great day,
 Alex Hall
 mehg...@icloud.com
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 

Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread Jamie Pauls
Hi, Alex,

This script works like a charm. Thanks a million.

Take care and have a great day.
Jamie Pauls
jamiepa...@gmail.com



 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 (* 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
 

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread Alex Hall
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 jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
mehg...@icloud.com

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread May
And what widget is that?

May and LD Luna Moon!
www.canadianlynx.ca

 On Mar 27, 2015, at 9:35 PM, Ray Foret Jr rforet7...@comcast.net wrote:
 
 I have a wigit that I can use to give me a word count in Text Edit if I 
 wanted it to. 
 
 Sincerely,
 The Constantly Barefooted Ray
 
 Still a happy Mac, Verizon Wireless iPhone 6+ and Apple TV user!
 
 Sent from my Mac,
 the only computer with full accessibility for the blind built-in
 
 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 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
 jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 --
 Have a great day,
 Alex Hall
 mehg...@icloud.com
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread 'Maxwell Ivey' via MacVisionaries
hi; i know we shouldn't have to do it this way. but here is the website i use 
to get a word count. i copy the text from text edit into the enter field and 
click go and it gives me the word count right away. hope this helps, max  
http://www.javascriptkit.com/script/script2/countwords.shtml
On Mar 27, 2015, at 9:11 PM, May wrote:

 And what widget is that?
 
 May and LD Luna Moon!
 www.canadianlynx.ca
 
 On Mar 27, 2015, at 9:35 PM, Ray Foret Jr rforet7...@comcast.net wrote:
 
 I have a wigit that I can use to give me a word count in Text Edit if I 
 wanted it to. 
 
 Sincerely,
 The Constantly Barefooted Ray
 
 Still a happy Mac, Verizon Wireless iPhone 6+ and Apple TV user!
 
 Sent from my Mac,
 the only computer with full accessibility for the blind built-in
 
 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 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
 jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 --
 Have a great day,
 Alex Hall
 mehg...@icloud.com
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com.
 Visit this group at http://groups.google.com/group/macvisionaries.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 

Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread Ray Foret Jr
I have a wigit that I can use to give me a word count in Text Edit if I wanted 
it to. 

Sincerely,
The Constantly Barefooted Ray

Still a happy Mac, Verizon Wireless iPhone 6+ and Apple TV user!

Sent from my Mac,
the only computer with full accessibility for the blind built-in

 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com wrote:
 
 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 jamiepa...@gmail.com 
 mailto:jamiepa...@gmail.com 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
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
 mehg...@icloud.com mailto:mehg...@icloud.com
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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.

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Script to Give a Word Count in TextEdit

2015-03-27 Thread Alex Hall
I'm glad it works. :) Anyone else can use it too, so long as you have Talking 
Dashboard:
https://dl.dropboxusercontent.com/u/17005121/talking%20dashboard.zip

Again, this script will be in the next update to that, but it will work right 
now if you paste the code into Script Editor and save the file in the same 
folder as the other Talking Dashboard scripts.
 On Mar 27, 2015, at 10:55 PM, Jamie Pauls jamiepa...@gmail.com wrote:
 
 Hi, Alex,
 
 This script works like a charm. Thanks a million.
 
 Take care and have a great day.
 Jamie Pauls
 jamiepa...@gmail.com mailto:jamiepa...@gmail.com
 
 
 
 On Mar 27, 2015, at 7:10 PM, Alex Hall mehg...@icloud.com 
 mailto:mehg...@icloud.com wrote:
 
 (* 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
 
 
 
 -- 
 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 macvisionaries+unsubscr...@googlegroups.com 
 mailto:macvisionaries+unsubscr...@googlegroups.com.
 To post to this group, send email to macvisionaries@googlegroups.com 
 mailto:macvisionaries@googlegroups.com.
 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
mehg...@icloud.com

-- 
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 macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.