It's not really a VoiceOver function but here is both the command line and AppleScript command to say a string of text.
say "string of text" this will say the quoted string in the system default voice.
In the command line there are other options such voice, file, output to a file port, which lets you send the output to other macs on a network or across the internet.
You could access these option in AppleScript by creating a variable with the commandline and and then passing that as a shell script witht he do shell script command here is an example:
set theCMD to "say -v Victoria 'Hello Greg'" do shell script theCMD Greg Kearney 535 S. Jackson St. Casper, Wyoming 82601 307-224-4022 gkearney@xxxxxxxxx On Feb 3, 2009, at 9:41 AM, E.J. Zufelt wrote:
David,Can you explain how to get Apple script to interact with Voiceover to do even the simplest thing like say a string of text? I know that you can use Apple Script to interact with the tts engine, but I don't hink that it is possible with VO.Everett On 3-Feb-09, at 11:53 AM, David Poehlman wrote:Hi E J, you were perfectly clear. the current solution that works well is to use apple script. <giggle>On Feb 3, 2009, at 10:36 AM, E.J. Zufelt wrote: Good morning David,To clarify what I was saying, VO does not currently support scripting, but if it did applications could be made more accessible.I suppose that this could likely best be done by using apple script and some version of a Voiceover API.Thanks, Everett On 3-Feb-09, at 11:25 AM, David Poehlman wrote:this seems circular. you say that voiceover cannot be scripted but apps could be improved with voice over scripting.Were scripting to be implemented in vo, it would probably be through apple scripts and rather than change the apps, it would most likely label items and provide keystrokes.On Feb 3, 2009, at 10:21 AM, E.J. Zufelt wrote: Good morning,Unfortunately Voiceover cannot be scripted. Although Voiceover does work well with most applications, there are certainly times were accessibility could be improved through scripting.Everett On 3-Feb-09, at 11:08 AM, Jim Gatteys wrote:Hi Mike! I just downloaded AppleScript: the definite guide and AppleScript in a nutshell,both Oreilly books from Bookshare. They don't seem to be very new butthey seem to cover the basics of scripting and that's what I was looking for.And as for whether VoiceOver is scriptable, I understnad its not andthere doesn't seem to be a script dictionary or library for it. I don't really know though--all still new to me. Jim -- Skype: JimInTexasClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxx with 'subscribe' in the Subject field OR by logging into the Web interface at //www.freelists.org/list/macvoiceoverClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxxwith 'subscribe' in the Subject field OR by logging into the Webinterface at //www.freelists.org/list/macvoiceoverClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxxwith 'subscribe' in the Subject field OR by logging into the Webinterface at //www.freelists.org/list/macvoiceoverClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxxwith 'subscribe' in the Subject field OR by logging into the Webinterface at //www.freelists.org/list/macvoiceoverClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxxwith 'subscribe' in the Subject field OR by logging into the Webinterface at //www.freelists.org/list/macvoiceoverClick on the link below to go to our homepage. http://www.icanworkthisthing.comManage your subscription by using the web interface on the link below.//www.freelists.org/list/macvoiceover Users can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxxwith 'subscribe' in the Subject field OR by logging into the Webinterface at //www.freelists.org/list/macvoiceover
Click on the link below to go to our homepage. http://www.icanworkthisthing.com Manage your subscription by using the web interface on the link below. //www.freelists.org/list/macvoiceoverUsers can subscribe to this list by sending email to macvoiceover-request@xxxxxxxxxxxxx with 'subscribe' in the Subject field OR by logging into the Web interface at //www.freelists.org/list/macvoiceover