• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 17 Sep 2002 11:42:40 -0700

On 9/17/02 10:57 AM, "John Cebasek" <email@hidden> wrote:

> Hi All:
>
> (Newbie question follows)
>
> I have to implement a "Email..." button in our application, which
> attaches a document to a mail message that the user can edit and send.
> I've whipped up a little script that gets compiled into a 'scpt'
> resource that works fine for OS X and Mail.
>
> However, I have to get the same sort of functionality going for Outlook
> Express in OS 9. Looking at the dictionary, I thought it was simpler
> than Mail's to use, however, I was wrong (could be my familiarity with
> Applescript).
>
> Does anyone have a sample script (or point me to a url containing a
> script) that I can use as a base to start implementing this
> functionality?
>

What is holding you up? Attaching the attachment? Depending on whether you
want a new message on the screen (I think you do) or a saved message ready
to send without opening, you use either 'draft window' or 'outgoing message'
respectively. But attachments are made the same way. If there's only one,
it's quite easy. Do you have a problem with 'recipient' too? That's very
different depending on whether it's a draft window or an outgoing message.
Let's say you've already set a variable to the document (an alias, not a
Finder file nor a string) as 'theDoc', and another one to some boilerplate
content 'theContent':

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

Or what would you like to do?

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

  • Follow-Ups:
    • Re: Basic Outlook Express script
      • From: John Cebasek <email@hidden>
References: 
 >Basic Outlook Express script (From: John Cebasek <email@hidden>)

  • Prev by Date: Re: Droplet Problem
  • Next by Date: Re: Search a file question - Mac OS 9
  • Previous by thread: Basic Outlook Express script
  • Next by thread: Re: Basic Outlook Express script
  • Index(es):
    • Date
    • Thread