• 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: Trying to send mail with attachments through Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to send mail with attachments through Entourage


  • Subject: Re: Trying to send mail with attachments through Entourage
  • From: "Gary (Lists)" <email@hidden>
  • Date: Sun, 17 Dec 2006 11:56:58 -0500

"Bryan Lockwood" wrote:

> I am trying to create an AppleScript to that will use Entourage to generate a
> new message, address it properly, and then add all the PDF files that are
> found where the scanner software left them. Seems straightforward. I can
> create a new message easily enough:
>
> tell application "Microsoft Entourage"
>   set msg to make new outgoing message with properties {subject:"XXX"} end
> tell
>
>> From here on, though, I am baffled. Statements like "make new recipient" or
>> "make new attachment" are flatly rejected as impossible requests.
>
> Can anyone give me a clue here?  It would be greatly appreciated.


Bryan,

I think you will make better progress if you script a new 'draft window'
rather than a new 'outgoing message'.  There are differences between these,
and it's generally more straightforward for the scripter to deal with 'draft
message'.

So, for example, you might write:


set myPDFattach_ to "your:path:to:somefile.pdf" as alias
tell application "Microsoft Entourage"
    activate
   -- (following is a single line)
   set msg to make new draft window with properties {to
recipients:"email@hidden"}
    make new attachment at msg with properties {file:myPDFattach_}
end tell


See the Entourage AppleScript dictionary (open the app with your script
editor) for more about the 'draft window', its properties and elements.
--
Gary

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Trying to send mail with attachments through Entourage (From: Bryan Lockwood <email@hidden>)

  • Prev by Date: Trying to send mail with attachments through Entourage
  • Next by Date: Re: preserving literal text in AppleScripts
  • Previous by thread: Trying to send mail with attachments through Entourage
  • Next by thread: Re: Trying to send mail with attachments through Entourage
  • Index(es):
    • Date
    • Thread