• 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 do I read a file ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I read a file ...


  • Subject: How do I read a file ...
  • From: Peter Hudson <email@hidden>
  • Date: Fri, 16 May 2008 16:16:26 +0100

A certain kind person ( on this list ) gave me this piece of script 
to setup an email. 

I need to now read   "the body text" from a file....

Any ideas would be gratefully received by this Cocoa programmer....


tell application "Mail"
set mySub to "message subject"

set theBody to "the body text"

set toRecip to {name:"Peter Hudson", address:"email@hidden"}
set theFile to "P1:Users:bear:Desktop:TheFile.zip" as alias
set theMessage to make new outgoing message with properties {subject:mySub, content:theBody}
make new to recipient at end of theMessage with properties toRecip
make new attachment with properties {file name:theFile} at end of theMessage
send theMessage


end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How do I read a file ...
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Shell script runs this osascript but errors how to stop the error?
  • Next by Date: Re: How do I read a file ...
  • Previous by thread: Re: PowerPoint applescript for shape type free form
  • Next by thread: Re: How do I read a file ...
  • Index(es):
    • Date
    • Thread