• 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: Scripting Mail (attempt)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Mail (attempt)


  • Subject: Re: Scripting Mail (attempt)
  • From: John Delacour <email@hidden>
  • Date: Tue, 29 Apr 2003 12:31:47 +0100
  • Mac-eudora-version: 6.0a16

At 10:53 pm +0200 28/4/03, bezoek wrote:

Scripting Mail is very hard. Google comes in handy, and code snippets can be found on the web. The Mail-part of the script below worked when part of a droplet, but when used with one or both of the top two lines balks at adding the attachment. I tried it using the POSIX path, but to no avail.



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


Or you can try breaking your balls with the official version at

<file:///Library/Scripts/Mail Scripts/Create New Message.scpt>



JD
_______________________________________________
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: 
 >Scripting Mail (attempt) (From: bezoek <email@hidden>)

  • Prev by Date: Re: Swedish version AS 1.8.3?
  • Next by Date: Re: Progress dialog how-to
  • Previous by thread: Scripting Mail (attempt)
  • Next by thread: iTunes 4 & Artwork scripting... Ahhh?
  • Index(es):
    • Date
    • Thread