On 23/12/04 4:44 pm, "revDAVE" <[EMAIL PROTECTED]> wrote:

> On 12/23/04 6:39 AM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:
> 
>> That script will set the account of the selected message to your new
>> account, AFTER the reply has been created. You really need to either set the
>> account of the message before replying (in which case the reply will inherit
>> the account if the prefs are not set to 'always use default account') or to
>> create the reply and then set the account of the draft message window.
>> Either way will work.
>> 
>> This script will do the first method:
>> 
>> 
>> tell application "Microsoft Entourage"
>>     set selectedMessages to current messages
>>     -- if there are no messages selected, warn the user and then quit
>>     if selectedMessages is {} then
>>         display dialog "Please select a message first and then run this
>> script." with icon 1
>>         return
>>     end if
>>     repeat with theMessage in selectedMessages
>>         set account of theMessage to POP account "[EMAIL PROTECTED]"
>>         reply to theMessage
>>     end repeat
>> end tell
>> 
>> Note that this script also generates the reply, so you can remove that
>> action from the rule. This allows you to run the script directly on selected
>> messages, rather than running a rule (although the script will also work
>> from a rule if you wanted it to apply automatically on incoming mail).
> 
>  Thanks Barry ...  But I could not quite get that to work...
> 
> - I updated that particular rule - to only include the AppleScript that you
> sent...  It did in fact create a reply ... However it did not alter the
> account...
> -  I also tried running the AppleScript directly without using a rule ...
> Same result...
> 
> - Any ideas?
> 
> ===
> 
> * Another quirky thing...  My original script below ...  Which did work when
> I selected messages in the out-box...  Did NOT reflect the new account in
> the out-box window after I ran the script ...  However if I  double clicked
> on one particular message ..  Then it would show the updated account...
> 
> Q:  is there a way to add some code to the script to make the out-box window
> automatically refresh to reflect the changes?
> 
> 
>> tell application "Microsoft Entourage"
>>     set selectedMessages to current messages
>>     -- if there are no messages selected, warn the user and then quit
>>     if selectedMessages is {} then
>>         display dialog "Please select a message first and then run this
>> script." with icon 1
>>         return
>>     end if
>>     repeat with theMessage in selectedMessages
>>         -- Assume theMsg is a reference to the message
>>         set account of theMessage to POP account "[EMAIL PROTECTED]"
>>     end repeat
>> end tell
>> 
> 
> 
> 
> --
> Thanks - RevDave
> [EMAIL PROTECTED]
> [db-lists]
> 
> Check out some great Domain Names at:
> http://www.domains4days.com
> 

Check your entourage preferences - under 'reply & forward', have you got
'reply using default account' checked? If so, uncheck it. That will force
replies to use the default account, not the account of the message you are
replying to.

-- 
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <http://www.entourage.mvps.org/>


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