Title: Re: Is there a way to clear the "Redirected" status of a message?
I'm pretty sure I sent my message in HTML for precisely that reason. Maybe I didn't bother for once, Plain text email messages hard-wrap long lines, inserting carriage returns after the last word preceding the 76th character in the line. Copying and pasting that into Script Editor means it won't compile. In your case the first part of the line's syntax actually is OK - but doesn't do what you'd want. The second part of the line doesn't make any sense on its own so caused a syntax error. Lust put it back onto the previous line.

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


(P.S. Why did you send a copy of your message to
<[EMAIL PROTECTED]>? He won't be interested. I got three copies in all - cc'd twice.)

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

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


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

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


> From: "Laurie A. Duncan" <[EMAIL PROTECTED]>
> Date: Tue, 25 May 2004 23:07:01 -0400
> To: "Entourage:mac talk" <[EMAIL PROTECTED]>
> Cc: Paul Berkowitz <[EMAIL PROTECTED]>
> Subject: Re: Is there a way to clear the "Redirected" status of a message?
>
> 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.
>
>
>

Reply via email to