Re: Entourage Attachments Syntax?
Re: Entourage Attachments Syntax?
- Subject: Re: Entourage Attachments Syntax?
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 14 May 2003 07:27:44 -0700
On 5/14/03 5:31 AM, "Rich" <email@hidden> wrote:
>
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
No. Is the information in the FMP cell a file path, such as
"Mac HD:Users:yourname:Big Folder:Little Folder:" ?
Remove that last line. An FMP 'file' (or however FMP understands 'file' as
an AppleScript term or as a variable) will not be what Entourage needs.
Inside Entourage's own tell block, 'file' has its own meaning. (In any case,
you're not actually using that line above.) The main thing is that Entourage
needs the 'alias' form for the the actual object, not the text file path.
That can be made in or out of any tell block from the file path:
set myFile to alias myLocation
Then, in the Entourage tell block below, include
attachment:{file:myFile},
>
>
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
--
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.