What stars? somehow, it's jus not working for me. Could it be the way the code is written; or, perhaps, the way it's coppied and pasted? I'm just not getting anywhere with this blasted thing!!!
Here's the code. >>> 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" Could it be the line breaks perhaps? Sincerely, The Constantly Barefooted Ray!!! Now a very proud and happy Mac user!!! Skype name: barefootedray Facebook: facebook.com/ray.foretjr.1 On Nov 19, 2011, at 5:46 PM, Matt Dierckens wrote: > That's weird. Mine workedjust fine. Get rid of the stars at the begining at > the script and you should be all set. > Matt > Sent from my macbook pro > > On 2011-11-19, at 6:43 PM, Ray Foret Jr wrote: > >> Hi, >> >> I tried to send this yesterday but got no response what so ever. >> >> Hi, >> >> I'm trying to work with the following code: >> >>> 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" >> >> >> I paste it in to the source box and leave everything else as it is with the >> results box checked and the Results radio button selected. No matter how >> much I try, though, I just cannot save the thing. I try to save it in the >> Macintosh/Library/Scripts folder but I get a dialog that says that the >> script cannot be saved. What gives? Could it possibly be the quotation >> signs or what is it? Something must be wrong with the code because it just >> will not save. >> >> >> >> >> >> Sincerely, >> The Constantly Barefooted Ray!!! >> >> Now a very proud and happy Mac user!!! >> >> Skype name: >> barefootedray >> >> Facebook: >> facebook.com/ray.foretjr.1 >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "MacVisionaries" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.
