On 1/15/05 6:52 AM, "revDAVE" <[EMAIL PROTECTED]> wrote:

>  I would like to be able to double click on the subject line of the messages
> window,  and have the e-mail open into a new window in a certain position
> and location. I was wondering if there is a way to have this automatically
> happen somehow? I am not very good with AppleScript, and  my attempt below
> did not work... Any ideas?
> 
> 
> tell application "Microsoft Entourage"
>     
>     set selectedMessages to current messages
>     
>     repeat with theMessage in selectedMessages
>         
>         set bounds of window of theMessage to {50, 50, 989, 745}
>         
>     end repeat
> end tell
> 


It doesn't work because there's no such thing as 'window of a message' in
AppleScript. Nor is there any guarantee that every selected message will
even have a window since messages can be selected without being opened.  The
'link' between messages ands windows is that a message window has a
'displayed message'. Also that you can narrow in on just those windows whose
class is 'message window' (meaning saved messages, not draft windows). The
simplest thing might be just to forget about current messages and look for
'every message window' and set the bounds of each. If you want to do a check
that it is also a selected message (I'm not sure you'd have to) then you'd
check to see if the window's displayed message is in the list of
selectedMessages. Don't forget to put the window in {list braces} when doing
this check.


-- 
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. It's often impossible to answer your questions
otherwise.


-- 
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