G
Guest
Hi gang,
I'm using Microsoft Office 2004 and I know nothing about AppleScript,
but I was wondering if someone could help me finish this AppleScript?
I spent about 4 hours trying to figure this out so far, but I can't
figure out how to add an attachment to this.
Basically, I know the filepath to the file I want to attach... for the
sake of example, let's say the filepath location is:
"My Hard Drive/Users/scott/Desktop/invoice.pdf"
Any ideas how to finish this script? Thanks!
(By the way, the reason I'm using an AppleScript instead of using
FileMaker 8's built-in ability to attach a PDF to an outgoing email is
that there's an annoying bug that has always been in Entourage where it
does NOT open up & display a new outgoing message created by FileMaker
-- it only puts the email in either the outbox or the drafts folder.
This is NOT accurate nor desired behavior -- Apple's Mail program does
this properly.)
Here's the AppleScript I've got so far:
tell application "FileMaker Pro Advanced"
set emailaddress to cell "Email Address" of current record
set MailSubject to "Invoice"
end tell
tell application "Microsoft Entourage"
set MyMessage to make new outgoing message with properties
{recipient:emailaddress, subject:MailSubject}
open MyMessage
activate
end tell
Thanks,
Scott
I'm using Microsoft Office 2004 and I know nothing about AppleScript,
but I was wondering if someone could help me finish this AppleScript?
I spent about 4 hours trying to figure this out so far, but I can't
figure out how to add an attachment to this.
Basically, I know the filepath to the file I want to attach... for the
sake of example, let's say the filepath location is:
"My Hard Drive/Users/scott/Desktop/invoice.pdf"
Any ideas how to finish this script? Thanks!
(By the way, the reason I'm using an AppleScript instead of using
FileMaker 8's built-in ability to attach a PDF to an outgoing email is
that there's an annoying bug that has always been in Entourage where it
does NOT open up & display a new outgoing message created by FileMaker
-- it only puts the email in either the outbox or the drafts folder.
This is NOT accurate nor desired behavior -- Apple's Mail program does
this properly.)
Here's the AppleScript I've got so far:
tell application "FileMaker Pro Advanced"
set emailaddress to cell "Email Address" of current record
set MailSubject to "Invoice"
end tell
tell application "Microsoft Entourage"
set MyMessage to make new outgoing message with properties
{recipient:emailaddress, subject:MailSubject}
open MyMessage
activate
end tell
Thanks,
Scott