Wrap the entire thing in a repeat .. something like

repeat with aDocument in documents of application "TextEdit"
set DocumentName to the Name of the Document...

end repeat 
 
On Feb 11, 2011, at 1:26 AM, Brandon Olivares wrote:

> Hi John,
> 
> Thanks for your help. I saw the code that was given, and it makes enough 
> sense. However, the tel block seems to specify a specific document (document 
> 1?). How would I have it check the count of whatever document is currently 
> active in TextEdit?
> 
> I figured out how to use the script editor, and how to enable the scripts 
> menu as well.
> 
> Aum namah Śivāya
> Brandon Olivares
> www.thefulleffect.org - Healing the Whole Person
> I help people to experience healing on all levels, and to choose a path that 
> is fulfilling for them.
> 
> 
> 
> On Feb 10, 2011, at 9:34 PM, Jonathan C. Cohn wrote:
> 
>> start AppleScript editor and paste everything into it.
>> 
>> Press the run button in the toolbar or command-R and see if it works.  If it 
>> works save it.
>> 
>> There is a place in the library where you can put it so the script shows up 
>> in your contextual (VO-Shift-M) menus.  
>> 
>> Something like "Library/Apple Scripts/Textedit Scripts"  In order for those 
>> scripts to show up in your menu though there is a preference that needs to 
>> be checked in the AppleScript editor.
>> 
>> Jon
>> 
>> On Feb 10, 2011, at 9:19 PM, Donna Goodin wrote:
>> 
>>> Hi John,
>>> 
>>> Thanks for responding, but I think you're a bit over my head. :)
>>> 
>>> Let's be more concrete.  You suggested that a simple script would allow one 
>>> the option to see the word count.  I've saved the script text, but what 
>>> specific steps do I take to implement that script?
>>> Thanks,
>>> Donna
>>> On Feb 10, 2011, at 8:33 PM, Jonathan C. Cohn wrote:
>>> 
>>>> Creating an AppleScript can be frustrating even to programmers. But it 
>>>> certainly is possible,  I have a AppleScript that is about 200 lines of 
>>>> code right now.  Some sections were quite annoyng  for example, I decided 
>>>> to have a "handler" that creates a folder if it does not exist.  When I 
>>>> use this to create desktop folders I get an error the first time something 
>>>> is attempted to be put into the folder.  The error said can't turn a 
>>>> folder into a number or some other weirdness.
>>>> 
>>>> IN terms of using AppleScript, the AppleScript editor in the Utilities 
>>>> directory comes with a help menu that points you to the Apple web site 
>>>> with a manual.  For simple utilities  or system admin it can be quite 
>>>> useful.  
>>>> 
>>>> Hope I am not being too vague.  Also there were a couple posts on this 
>>>> list 2-3 months ago discussing ways to make the experience better.  I 
>>>> believe that Uma uses the developer extras that can be installed from the 
>>>> Snow Leopard disk to write his AppleScripts.
>>>> 
>>>> Jon
>>>> 
>>>> On Feb 10, 2011, at 12:52 PM, Donna Goodin wrote:
>>>> 
>>>>> Hi all,
>>>>> 
>>>>> Sorry if I'm really behind here, but I need to get on top of how to 
>>>>> create apple scripts.  Can someone give me some pointers for how to do 
>>>>> this?
>>>>> thanks in advance,
>>>>> Donna
>>>>> On Feb 10, 2011, at 12:37 PM, Jonathan C. Cohn wrote:
>>>>> 
>>>>>> A simple applescript should do the trick...
>>>>>> 
>>>>>> tell document 1 of application "TextEdit"
>>>>>>  set wordcount to the (count of words) as text
>>>>>>  set charactercount to the (count of characters) as text
>>>>>> end tell
>>>>>> say wordcount & " words and " & charactercount & " characters"
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Feb 10, 2011, at 11:46 AM, Brandon Olivares wrote:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> Is there a way to get the word or at least character count of text, in 
>>>>>>> either textedit and/or pages? It's getting annoying that I can't get 
>>>>>>> this yet.
>>>>>>> 
>>>>>>> Aum namah Śivāya
>>>>>>> Brandon Olivares
>>>>>>> www.thefulleffect.org - Healing the Whole Person
>>>>>>> I help people to experience healing on all levels, and to choose a path 
>>>>>>> that is fulfilling for them.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "MacVisionaries" group.
>>>>>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>>>>>> To unsubscribe from this group, send email to 
>>>>>>> macvisionaries+unsubscr...@googlegroups.com.
>>>>>>> For more options, visit this group at 
>>>>>>> http://groups.google.com/group/macvisionaries?hl=en.
>>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "MacVisionaries" group.
>>>>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to 
>>>>>> macvisionaries+unsubscr...@googlegroups.com.
>>>>>> For more options, visit this group at 
>>>>>> http://groups.google.com/group/macvisionaries?hl=en.
>>>>>> 
>>>>> 
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "MacVisionaries" group.
>>>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>>>> To unsubscribe from this group, send email to 
>>>>> macvisionaries+unsubscr...@googlegroups.com.
>>>>> For more options, visit this group at 
>>>>> http://groups.google.com/group/macvisionaries?hl=en.
>>>>> 
>>>> 
>>>> -- 
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "MacVisionaries" group.
>>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>>> To unsubscribe from this group, send email to 
>>>> macvisionaries+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/macvisionaries?hl=en.
>>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "MacVisionaries" group.
>>> To post to this group, send email to macvisionaries@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> macvisionaries+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/macvisionaries?hl=en.
>>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "MacVisionaries" group.
>> To post to this group, send email to macvisionaries@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> macvisionaries+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/macvisionaries?hl=en.
>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To post to this group, send email to macvisionaries@googlegroups.com.
> To unsubscribe from this group, send email to 
> macvisionaries+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/macvisionaries?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to macvisionaries@googlegroups.com.
To unsubscribe from this group, send email to 
macvisionaries+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to