• 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: Entourage Attachments Syntax?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage Attachments Syntax?


  • Subject: Re: Entourage Attachments Syntax?
  • From: Rich <email@hidden>
  • Date: Wed, 14 May 2003 08:31:05 -0400

Rich:

>> Hi there. Quick question:
>>
>> If I have an attachment pdf I want to send out with an email, what syntax
>> can I use? I might have path errors, but I've tried other path syntaxes and
>> it hasn't worked.
>>
>> I'm trying to create a draft window with the attachment already
>> included/attached.
>
> Found it:
>
> tell application "Microsoft Entourage"
> set myAttachment to {file:"Disk:Users:me:Desktop:myfile.pdf"}
> activate
> set draftWindow to make new draft window with properties ,
> {subject:"The Sky Is Falling", content:"Hi, Bubba",
> attachment:myAttachment, to recipients:"email@hidden"}
>
> end tell
>
> Gotta love AppleScript eh?

Ok I'm having a conversation with myself...

Let's say I have a FileMaker field that houses the location of the file.
How can I get it to attach that file? I'm getting wrong data types,
although I'm trying to coerce it into a file type:

tell application "FileMaker Pro"
set myEmailTarget to cell "Email" of current record of window 1
set myGeneratedEmail to cell "Generated Email Body" of current record of
window 1
set myLocation to cell "Attachment_1_Location" of current record of
window 1
set myAttachment to {file:myLocation}
end tell

tell application "Microsoft Entourage"
activate
set draftWindow to make new draft window with properties ,
{subject:"OH YEAH BABY", content:myGeneratedEmail,
attachment:{file:myLocation}, to recipients:myEmailTarget}
end tell

Cheers


--- Rich Fortnum / Viaduct Productions / Toronto (EST)
--- LDCMS Web-based Content Management System
--- Affordable, Quick, Powerful, Logical!
--- http://www.viaduct-productions.com
_______________________________________________
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 Attachments Syntax?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Entourage Attachments Syntax? (From: Rich <email@hidden>)

  • Prev by Date: Re: Entourage Attachments Syntax?
  • Next by Date: RE: moving files to a date named folder
  • Previous by thread: Re: Entourage Attachments Syntax?
  • Next by thread: Re: Entourage Attachments Syntax?
  • Index(es):
    • Date
    • Thread