Hi Paul,

Thanks again for these scripts. I am trying to use the 2nd one,
incorporating both the redirect and the redirected status change into the
same action since using my redirect rul and then another rul with the "strip
redirect" script is hit and miss (some messages it seems to work on but
others are still left  with the redirect icon)

Anyway, the script won't compile with 'without opening message'. I get a
Syntax Error "Expected end of line, etc. but found class name."

So I removed that line but just now realized the implications of that as
about 20 windows flashed and then closed before my eyes :)

I'm sure I'm overlooking something simple, but I'd appreciate your guidance
on what that syntax should be.

tell application "Microsoft Entourage"
    set theMsg to item 1 of (get current messages)
    set theRedirect to redirect theMsg to "Gmail_Laurie <[EMAIL PROTECTED]>"
without opening message
    send theRedirect with sending later
    set redirected of theMsg to false
end tell

Laurie


On 5/15/04 3:38 PM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:

> On 5/15/04 11:40 AM, "Laurie A. Duncan" <[EMAIL PROTECTED]> wrote:
> 
>> I have a rule that currently Redirects all messages to my Google Gmail
>> account for beta testing. I receive many hundreds of messages a day. The
>> rule works great, of course, but it leaves every message in Entourage (2004)
>> with that redirected arrow, which I find a bit annoying.
>> 
>> Is there a way (a script perhaps?) to strip those redirected indicators
>> either as part of the same rule that initiates the redirect (preferred
>> method) or after the fact that I can do manually?
> 
> Have the rule run this script, after doing the redirection:
> 
> tell app "Microsoft Entourage"
>     set theMsg to item 1 of (get current messages)
>     set redirected of theMsg to false
> end tell
> 
> 
> I suppose it's just possible that the script would run before the
> redirection arrow appears from the first action of the rule. If so, you'd
> simply have to replace the redirection action with a single script that does
> both actions:
> 
> tell app "Microsoft Entourage"
>     set theMsg to item 1 of (get current messages)
>     set theRedirect to redirect theMsg to "My Name <[EMAIL PROTECTED]>"
> without opening message-- or whatever
>     send theRedirect  with sending later -- or remove 'with sending later'
>     set redirected of theMsg to false
> end tell
> 
> 
> I think it's best to send 'with sending later' which will put the redirect
> in the Outbox, as you're doing at present, so all the redirects go off at
> once on next Send All. Otherwise each message will go off separately ringing
> the "just sent" bell each time.


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