Re: speak text of email
Re: speak text of email
- Subject: Re: speak text of email
- From: dealTek <email@hidden>
- Date: Mon, 14 Jan 2013 08:31:44 -0800
Hi All,
seems there is an issue with this script...
In apple mail - I set a rule for any mail that contains "@" then run this applescript...
Currently it is triggered from the rule but speaks what ever message is currently highlighted... but I want it to speak the ACTIVE INCOMING mail (not whatever is highlited)
So I'll bet we have to do something like set theSelectedMessages to the === ACTIVE INCOMING mail ???
Yo do we set that?
tell application "Mail"
set theSelectedMessages to the selection ----- hmmm this needs help
set eachMessage to item 1 of theSelectedMessages
On Jan 14, 2013, at 8:03 AM, dealTek <email@hidden> wrote:
> this basic script will speak various vars that you acivate... you may need to fool with it a bit...
>
> tell application "Mail"
> set theSelectedMessages to the selection
> set eachMessage to item 1 of theSelectedMessages
> set theToName to name of to recipient of eachMessage
> set theToEmail to address of to recipient of eachMessage
>
> set theSender to sender of eachMessage
> set theDate to date received of eachMessage
> set theSubject to subject of eachMessage
> set theBody to content of eachMessage
> set theToName to ""
> set toList to (to recipients of eachMessage)
>
> set minibod to (words 1 thru 10 of theBody) as string
> --set minisub to (words 1 thru 3 of theSubject) as string
>
> set AppleScript's text item delimiters to "<"
> set who to text item 1 of theSender
>
>
> end tell
>
> say who
> say theSubject using "Alex"
> say minibod using "Alex"
>
>
>
> --
> Thanks,
> Dave - DealTek
> email@hidden
> [db-3]
>
--
Thanks,
Dave - DealTek
email@hidden
[db-3]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden