• 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
how to attach a file in Apple's Mail app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Stack overflow error
  • Next by Date: "of machine" in 10.1?
  • Previous by thread: Re: Question
  • Next by thread: "of machine" in 10.1?
  • Index(es):
    • Date
    • Thread