On 11/17/00 9:20 AM, I wrote:
> Why do it that way, when Entourage's applescripting is 1000% more
> reliable? I've put in a little error-check to make sure you're only doing
> this with a received message :
>
>
> tell application "Microsoft Entourage"
>
> try
> set theMsg to displayed message of window 1
> if class of theMsg � incoming message then error -128
> on error
> beep
> display dialog "The script only works with a received message
> in the front window." return
>
> end try
>
> set replyMsg to reply to theMsg
> set selection to return
> save window 1
>
> end tell
>
>
>
If you think you might want to use this with a received message selected in
the message pane but NOT displayed in the preview pane or its own window
(i.e. if you don't use the preview pane), then change the line
set theMsg to displayed message of window 1
to
set theMsg to item 1 of (get current messages)
which will also work if the selected message IS displayed in preview pane or
its own window in the front.
Get used to the fact that Entourage does not support recording of scripts,
and you'll have to learn its scripting another way (the Dictionary, which is
very good). Recording scripts is usually a pretty crummy sort of scripting
anyway because it's always pointlessly selecting things which slows things
down and makes it impossible to run a script to do things in the background.
It is a good introduction to scripting, but you should move on from
recording as soon as you can.
--
Paul Berkowitz
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>