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.

Reply via email to