• 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
Entourage - send mail & attach on-the-fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Entourage - send mail & attach on-the-fly


  • Subject: Entourage - send mail & attach on-the-fly
  • From: Matthew Leingang <email@hidden>
  • Date: Tue, 06 Apr 2004 14:21:08 -0400

Hi folks,

I am scripting Entourage to automatically send my vCard information as an
attachment. This is what I've got so far:

tell application "Microsoft Entourage"
set newMail to make new outgoing message with properties ,
{recipient:{address:"email@hidden"}, attachment:{file:"Macintosh
HD:Users:matthew:mpl.vcf"}}
set the subject of newMail to "Re: Your Mail"
set the content of newMail to "Here's your vCard."
send {newMail}
end tell

This creates the message just fine, but it doesn't send. I can open it up
from Entourage and send it (to a real address, of course), but send
{newMail} doesn't do anything.

The Entourage dictionary says that send takes a list of messages -- do I
have the syntax right?

You might wonder why this script has me attaching a file rather than getting
the vCard data out of the me contact directly. This was the only way I
could get the attachment to work. I tried things like

attachment:{file:"foo.vcf",content:vCardData}

But that caused Entourage to crash and return a connection error.

Clearly I'm just mixed up on some grammar. Any help?

TIA,
Matt






--
Matthew Leingang
Preceptor in Mathematics, Harvard University
email@hidden
_______________________________________________
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: Entourage - send mail & attach on-the-fly
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Strange Error Reading File
  • Next by Date: Re: Quark - setting justification dynamically
  • Previous by thread: [ANN] iMagine Video released
  • Next by thread: Re: Entourage - send mail & attach on-the-fly
  • Index(es):
    • Date
    • Thread