Re: Speak text submitted via an email form.
Re: Speak text submitted via an email form.
- Subject: Re: Speak text submitted via an email form.
- From: Greg Strange <email@hidden>
- Date: Sat, 21 Jul 2001 17:37:06 -0500
on 7/21/01 1:43 AM, Jacob White at email@hidden wrote:
>
I'm interested in setting up a website where people can type some text into
>
a box and have it read out loud for me to hear. I was thinking that probably
>
the easiest way to do it would be to setup an email account, and have the
>
WebPages submit use an email form that mails the message to the account, and
>
then setup a Mac to check that account every minute or so and when an email
>
comes in, have it read the body of the text. I know how to do the email
>
form, I just need a little help with the reading the text of my email. Also
>
if anyone has any better ideas of ways to implement this that would be
>
great.
I'm sure others are going to come up with much more elegant solutions. But
you could always set up a rule to run on every incoming message and then
trigger an applescript that has this:
<applescript>
tell application "Outlook Express"
set msgList to current messages
set theContent to the content of item 1 of msgList
end tell
say theContent
</applescript>
This worked for me. Except I didn't try it on incoming message just a
selected message. But you get the idea. It doesn't seem all that hard to
do.