• 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: How To Add Attachments To A Message In Mail.app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Add Attachments To A Message In Mail.app?


  • Subject: Re: How To Add Attachments To A Message In Mail.app?
  • From: Jean-Baptiste LE STANG <email@hidden>
  • Date: Thu, 8 May 2003 21:40:05 +0200

This code was given by John Delacour earlier in April :

tell app "Mail"
set |message| to a reference to outgoing message
set |.| to a reference to end of outgoing messages
activate
set p to {visible:true, subject:"Test", content:"hello"}
set to1 to {name:"test", address:"email@hidden"}
set att1 to {file name:"dx:users:jd:test"}
set m to make |message| at |.| with properties p
tell m
make to recipient at end with properties to1
try
set e to "no error"
make attachment at end with properties att1
on error e
end try
--save
-- -- or
--send
end
end
e

jb


Le jeudi, 8 mai 2003, ` 21:09 Europe/Paris, Daniel Blanken a icrit :

Hey everyone!

I'm kinda experienced with AppleScript (with "kinda" meaning "been using it
for 6 years now ;)), but I am pretty new to scripting Apple's Mail.app in OS
X.

I've started writing a handler which creates a new outgoing message with one
or more recipients, a certain subject line, some text and so on... and
everything works fine, except that I just can't figure out how to attach one
or more files to a new message.

So, anyone out there willing to help me w/ my little prob? Thanks in
advance!

Daniel Blanken
_______________________________________________
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.
_______________________________________________
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: How To Add Attachments To A Message In Mail.app?
      • From: John Delacour <email@hidden>
References: 
 >How To Add Attachments To A Message In Mail.app? (From: Daniel Blanken <email@hidden>)

  • Prev by Date: Re: How To Add Attachments To A Message In Mail.app?
  • Next by Date: ill-10-scripting: file-name = dataset-name
  • Previous by thread: Re: How To Add Attachments To A Message In Mail.app?
  • Next by thread: Re: How To Add Attachments To A Message In Mail.app?
  • Index(es):
    • Date
    • Thread