Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'I needed a small change' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I needed a small change
Authored by: daveedvdv on Mar 06, '03 02:22:24PM
I'm not accustomed to AppleScript (yet), but I had to change the line
    tell application "Finder" to say ...
to simply
    say ...
Since noone else mentioned it, I suspect I might have something misconfigured somewhere. Oh well, it works now.

[ Reply to This | # ]
I needed a small change
Authored by: porkchop_d_clown on Mar 06, '03 04:35:15PM

Interesting. The only reason I have it that way, is because I saw another script that did it that way. I wonder what the difference is.

---
--
knock knock



[ Reply to This | # ]
tell..
Authored by: Accura on Mar 06, '03 09:08:46PM

The difference will be that with the "tell.." line that finder will speak the text, but with out the system will speak. The dock is a good app to use to do things, if im going to get a dialog to display i tell the dock to do it as it is allways in front of everything

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
Me Too
Authored by: yoel on Mar 06, '03 09:31:31PM
tell application "Finder" to say "foo"

gives the following error message:

Finder got an error: "foo" doesn't understand the say message.

However,

say "foo"

works as expected. This is on 10.2.4.

[ Reply to This | # ]

But it works fine for me. Hmmm....
Authored by: dcollett on Mar 07, '03 03:08:15AM
I used the original: tell application "Finder" to say "Mail from " & thisSender and it works fine for me (10.2.4). Why would AppleScript perform differently for different users?

[ Reply to This | # ]
But it works fine for me. Hmmm....
Authored by: porkchop_d_clown on Mar 07, '03 10:39:14AM

I don't know, but I realized last night you don't need the "tell application 'Finder'" clause at all. say is in the "standard extensions" library, it's not part of the finder.

---
--
knock knock



[ Reply to This | # ]