• 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: Create New Message script for Apple Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create New Message script for Apple Mail


  • Subject: Re: Create New Message script for Apple Mail
  • From: Dave Balderstone <email@hidden>
  • Date: Thu, 02 Oct 2003 15:02:55 -0600

Without seeing your code, here's the relevant part of the handler I use in an ASStudio app for our reporters to send digital pix. Watch line wrap (the end of each line is --)

-----
tell application "Mail"--
activate--
try--
set the_file to item 1 of these_files as alias--
set the new_message to (make new outgoing message with properties {visible:true, content:theMessage, subject:the_sender})--
tell the new_message--
make new to recipient at end of to recipients with properties {address:ToAddress}--
tell content--
make new attachment with properties {file name:the_file} at before the first character--
end tell--
end tell--
end try--
send the new_message--
end tell--
---------

djb

"Quando Omni Flunkus Moritati"
_______________________________________________
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: Create New Message script for Apple Mail
      • From: Lorin Rivers <email@hidden>
References: 
 >Create New Message script for Apple Mail (From: Lorin Rivers <email@hidden>)

  • Prev by Date: address book
  • Next by Date: Re: passing shell script arguments?
  • Previous by thread: Create New Message script for Apple Mail
  • Next by thread: Re: Create New Message script for Apple Mail
  • Index(es):
    • Date
    • Thread