How do I read a file ...
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