how to attach a file in Apple's Mail app
how to attach a file in Apple's Mail app
- Subject: how to attach a file in Apple's Mail app
- From: Shayne Packer <email@hidden>
- Date: Fri, 28 Sep 2001 15:30:11 -0700
How do I use AppleScript to attach a file to a message in Apple's Mail
application.
While I have been programming the Mac since 1984, I don't have much
experience in AppleScripting.
Mail's dictionary show a class "text attachment", but it seems to do
nothing.
This is what I tried:
tell application "Mail"
text attachment
set file name to anItem --anItem is a file path
end tell
What am I doing wrong?
_____________
Shayne Packer