Title: Re: speak sender script problem
Due to changes in E2004 to allow unicode text support for all sorts of properties & classes, a lot of items are now returned as 'Unicode Text' instead of plain old 'text' like in previous versions. 'Say' needs a text argument, not a unicode text argument, and it can't automatically coerce, so you need to change the script to this:


tell application "Microsoft Entourage"
    set theM to current messages
    set theMsg to item 1 of theM
    set theS to the (display name of the sender of theMsg) as text
    say theS
end tell

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <http://www.entourage.mvps.org/>


> From: Gilbert Harman <[EMAIL PROTECTED]>
> Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Date: Wed, 28 Jul 2004 16:54:06 -0400
> To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Subject: speak sender script problem
>
> The following script stopped working for me when I upgraded to Entourage
> 2004.  Can anyone suggest how to fix it?
>
>  gil
>
> tell application "Microsoft Entourage"
>     
>     set theM to current messages
>     set theMsg to item 1 of theM
>     set theS to the display name of the sender of theMsg
>     say theS
>     
> end tell
>
>
> --
> To unsubscribe:                     
> <mailto:[EMAIL PROTECTED]>
> archives:       
> <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
> old-archive:       
> <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
>

Reply via email to