Hello all. I am using AppleScript Studio to write an application that speaks text. I want to be able to get the application to speak on a remote computer, even if only on a local network, over Remote Apple Events.
I have been somewhat successful, in that, on my Leopard computer, I can speak to another Leopard computer; and I have built a preliminary "release" version, ran it on Tiger, and it could speak to my Leopard computer. But, no matter what I try, I cannot speak to a Tiger computer. All parties involved have Remote Apple Events sharing turned on.
Here's the code, in part (given the machine address, theAddress (e.g. eppc://compy.local); the text to speak, mrSay; and the voice to speak it with, mrVoice):
The code works, as I have said, but when I try to speak to a Tiger computer, I get the error
Thanks in advance for any help/workarounds.
By the way, I want to avoid ssh solutions, and stick to the AppleScript.
I have been somewhat successful, in that, on my Leopard computer, I can speak to another Leopard computer; and I have built a preliminary "release" version, ran it on Tiger, and it could speak to my Leopard computer. But, no matter what I try, I cannot speak to a Tiger computer. All parties involved have Remote Apple Events sharing turned on.
Here's the code, in part (given the machine address, theAddress (e.g. eppc://compy.local); the text to speak, mrSay; and the voice to speak it with, mrVoice):
Code:
using terms from application "Finder"
tell application "Finder" of machine theAddress
try
say mrSay using mrVoice
on error
say mrSay
end try [I]--Since mrVoice is user-defined, this is a simple failsafe.[/I]
end tell
end using terms from
The code works, as I have said, but when I try to speak to a Tiger computer, I get the error
Finder got an error: "Text To Speak" doesnt understand the «event sysottos» message. (-1708)
Thanks in advance for any help/workarounds.
By the way, I want to avoid ssh solutions, and stick to the AppleScript.