On or near 5/20/02 2:01 PM, Paul Berkowitz at [EMAIL PROTECTED] observed:

>> if class of the front window is draft window then
>>   try
>>       save the front window
>>   end try
>> end if
>> 
>> Put that code right before the line, "set theMsg to item 1 of (get current
>> messages)". 
>> 
>>> 
> 
> No need to try. But you won't get the correct message that way, Allen. If
> there was a message was selected in the folder previously, that one  is
> still selected. And if there was none, it's still {}.

So, let's argue..I tried my code before I sent it out, and it worked. That
is, I started a draft message, ran the script, and insured that I got that
message selected. My code fragment was designed just to test for the case of
an open draft window in front, and to get and operate on that message.
So I don't know what you mean by the last two sentences...if a draft window
is open, no message can be selected in a folder; the open window is the
current message after it has been saved.

It also allows the user to operate on any message, if they want to...and you
are right, it probably should limit the options to new (or at least
outgoing) messages, although why anyone would want to change the account on
a message after it was sent is beyond me.

The offset part was in the script and working so I didn't mess with it; I
just made a suggestion to modify something else. I try to avoid offset, too,
although I've had no really bad experiences...just limitations with long
strings. Barry's approach is a lot cleaner...the original works, I think, if
the text item delimiters are "", so that "text items" is the same as
"characters".
-- 
My web page: <http://home.earthlink.net/~allenwatson/>
My scripts page: <http:homepage.mac.com/allenwatson>
Microsoft MVP for Mac Entourage/Word--<[EMAIL PROTECTED]>


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