• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script used in conjunction with OE Rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script used in conjunction with OE Rule


  • Subject: Script used in conjunction with OE Rule
  • From: "Ray Barber" <email@hidden>
  • Date: Sat, 21 Sep 2002 18:50:22 -0500

Hi all ...

I'm running into trouble creating a script for a rule in OE 4.5, which I'd
like to associate it to. Essentially, this script will be run from a Rule,
based on a email I have received.

There are two issues I've had trouble with.

a) When I test using the Script Menu under Outlook Express, I can't seem to
get it to fill in the recipient prior to sending the message. It creates
the message fine, only without a recipient.

I found it interesting that I could initially use "make draft window with
properties", but falls short when I tried to accommodate sender.

and b), I cannot seem to get it to set the acct I wish to use. Is there a
way I can set an acct prior to sending, regardless the acct the email was
sent to?

I have tried various things (by purviewing OE's dictionary), but
unfortunately have come up with zilch. Below is a sampling, left unchanged
from last state.

======================================================================

set popAccountNames to "myacctnamegoeshere"
set reportTo to "email@hidden"

tell application "Outlook Express"
set selectedMessages to the current messages
repeat with theMessage in the selectedMessages
set theSubject to subject of theMessage
set theBody to source of theMessage
make new outgoing message with properties [NOT('SIDEWAYS-L')]
{to recipients:reportTo, subject:"Fwd: " & theSubject,
[NO-BREAK]content:theBody}
send
set read status of theMessage to read
end repeat
end tell

======================================================================

What am I doing wrong here? A gentle prodding will do, or a re-write will be
greatly appreciated. >:)

TIA

Ray






[thanks to has]
[formatted using ScriptToEmail - gentle relief for mailing list pains]
[http://files.macscripter.net/ScriptBuilders/ScriptTools/ScriptToEmail.hqx]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Script used in conjunction with OE Rule
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Question regarding raw events
  • Next by Date: mount netatalk shares
  • Previous by thread: Question regarding raw events
  • Next by thread: Re: Script used in conjunction with OE Rule
  • Index(es):
    • Date
    • Thread