• 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: John Delacour <email@hidden>
  • Date: Fri, 9 May 2003 08:17:32 +0100
  • Mac-eudora-version: 6.0a16

At 9:40 pm +0200 8/5/03, Jean-Baptiste LE STANG wrote:

This code was given by John Delacour earlier in April : ....


I also posted an alternative, which was, in essence:



tell application "Mail"
{visible:true, content:"", subject:"", sender:"", signature:""}
copy the result to pp
set f to {file name:alias "dx:Users:jd:Documents:b.txt"}
tell pp
set subject to "Test"
set content to "Here's that file at last..." & return & return
end tell
set m to make outgoing message with properties pp
tell m's content
set here to a reference to after last paragraph
make attachment at here with properties f
end tell
end tell


At 9:40 pm +0200 8/5/03, Jean-Baptiste LE STANG wrote:

....

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
_______________________________________________
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.

References: 
 >Re: How To Add Attachments To A Message In Mail.app? (From: Jean-Baptiste LE STANG <email@hidden>)

  • Prev by Date: Re: "idle" has different effect in X vs 9?
  • Next by Date: Re: Scriptable Text Editor for OSX???
  • Previous by thread: Re: How To Add Attachments To A Message In Mail.app?
  • Next by thread: Anyone using Apple's new iPod scripts?
  • Index(es):
    • Date
    • Thread