Thanks I'll have to try that myself if I can find it again I meant he code and 
when I have ti e time to compile it which should not take more then a second or 
two. lol!

take care all.

S
On Feb 12, 2011, at 11:40 AM, Brandon Olivares wrote:

> Hi,
> 
> Oh, i see. That makes sense. It works perfectly now. :)
> 
> Aum namah Śivāya,
> Brandon
> 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 12, 2011, at 2:00 PM, Jonathan C. Cohn wrote:
> 
>> I mis-read your question yesterday. In applescript if you specify an object 
>> (document,  file, folder, window ) with a number  then it uses the "index" 
>> of the object which for windows and documents Document 1 is the current 
>> document and Document (count of documents) would be the document on the 
>> bottom of the pile.  This goes for applications too.  
>> 
>> So you could also say tell the frontmost application or tell application 1 
>> and the currently active application will receive the commands.
>> 
>> Let me know if this is not clear,
>> 
>> Jonathan
>> 
>> 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.
>> 
> 
> -- 
> 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