• 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
RE: Basic Outlook Express script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Basic Outlook Express script


  • Subject: RE: Basic Outlook Express script
  • From: John Cebasek <email@hidden>
  • Date: Tue, 17 Sep 2002 17:13:29 -0400

Paul:

(Guess what sort of server we have here at work, huh?)

It's Outlook 2001. I did happen to get this to almost work, but the values
don't seem to be appearing in the mail message:

on send_email_message_OE(targetAddress, targetName, subjectLine, theSender,
messageText, fileAttachment)
tell application "Microsoft Outlook"
activate
set theDoc to {fileAttachment} as list
set messageContent to messageText as
string
set emailsubject to subjectLine as string
set theRecipient to
{targetAddress} as list
set carbonCopyRecipients to {""} as list
set
blindcarbonCopyRecipients to {""} as list
set showMe to true

--
CreateMail {Subject:subject, theContent, theDoc, theRecipient,
ccRecipients, |display|}
CreateMail {|subject|:emailsubject,
|body|:messageContent,
|attachments|:theDoc, |recipients|:theRecipient,
|cc_recipients|:carbonCopyRecipients,
|bcc_recipients|:blindcarbonCopyRecipients, |showMe|:false}


end tell
end send_email_message_OE

send_email_message_OE("email@hidden", "me", "Hi
There",
"email@hidden", ,
"Starting OE Support for Export wizard", "OS X:Norton
AntiVirus Installer
Log")

What's with the pipes after you check syntax in the editor?

John

> ----------
> From: Paul Berkowitz
> Sent: Tuesday, September 17, 2002 16:33
> To: Applescript-Users
> Subject: Re: Basic Outlook Express script
>
> On 9/17/02 12:56 PM, "John Cebasek" <email@hidden> wrote:
>
> > Hi Paul (and All):
> >
> > OK. I tried to get this to compile and of course I'm having problems. If
> I
> > check the Outlook express dictionary, there's only one entry in there
> for mail
> > and it's CreateMail [Subject string] [Body string] [attachments a list
> of
> > list] ...
> >
> > BTW, if I'm reading the script editor right, in the code below, someone
> thinks
> > that draft window are variables....
> >
> > How does set newMessage... get translated into "CreateMail"...
> >
> > (Sorry for the newbie question, but I just got this dumped onto my
> lap...)
> >
> > John
> > On Tuesday, September 17, 2002, at 02:42 PM, Paul Berkowitz wrote:
> >
> > set theDoc to alias "Mac HD:Folder Name:File Name"
> > set the Content to "Your boilerplate standard text here"
> > set theSubject to "Whatever you want, or leave this out"
> >
> > tell application "Outlook Express"
> > set newMessage to make new draft window with properties
> > {subject:theSubject, to recipients:"Joe Bow <email@hidden>",
> > content:theContent, attachment:{file:theDoc}}
> > end tell
> >
> >
>
> You checked the wrong dictionary. That paltry dictionary which has nothing
> but CreateMail is from the Microsoft Outlook dictionary (i.e. Outlook 2001
> for Mac).
>
> So which are you trying to script: Outlook Express (which almost everyone
> on
> a Mac has) or Outlook 2001 (which only people using Exchange Server have)?
>
> --
> Paul Berkowitz
> _______________________________________________
> 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.
_______________________________________________
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: Basic Outlook Express script
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Search a file question - Mac OS 9
  • Next by Date: mount volume
  • Previous by thread: Re: Basic Outlook Express script
  • Next by thread: Re: Basic Outlook Express script
  • Index(es):
    • Date
    • Thread