Your first question is tricky. You might be able to get the "name of" "current application" or "frontmost application" and put it in a variable, but I think this is a little difficult.
The second question is easy, at least so far as it doesn't depend on the first question. You could just change the "say WordCount" line to: say "The word count is " & WordCount If you wanted to include the application name, assuming you stored it in the variable appName, you could do this: say "The word count in " & appName & " is " & WordCount Best, Nic On 1 May 2014, at 9:59 am, Scott Berry <sb356...@gmail.com> wrote: > A couple of questions here. Firstly, is there a way in Apple script to get > the name of the program where the word count is coming from and secondly I > don't like just the number. I'd like it to say "Your word count in program > name is". How would I accomplish this? > > > -- > 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.