On 11/11/02 2:18 PM, "Gary" <[EMAIL PROTECTED]> wrote:
> (It did, however, take me 3 sessions to figure out why
>
> set theSender to sender name of theMsg
>
> wasn't working, as the dictionary seems to suggest.
The Dictionary suggests no such thing! You have to know AppleScript syntax
as well as a particular application's dictionary. This is basic AppleScript
language syntax, nothing to do with Entourage. AppleScript is a lot easier
than other languages to _read_; it's not all that much easier to write.
Sometimes there are four alternate right ways to do something rather than
just one right way (which can be confusing in itself), but there are still
lots more wrong ways that won't work. You have to know at least one of the
right ways.
>
> However, a fairly random stab at "set theSender to name of sender of theMsg"
> worked like a charm, as I'm sure everyone else knows :-) Live and learn.
So would
set theSender to theMsg's sender's display name
if you prefer that order (like .dot languages). You should really use
'display name', not just 'name' as the property, although it works if you
say it does.
--
Paul Berkowitz
MVP Entourage
PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
--
To unsubscribe:
<mailto:Entourage-Talk-Off@;lists.letterrip.com>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>