I've searched the lists for the answer to this, and the answer seems to be "it can't be done", but I thought I'd give it one more try:
tell application "Finder" set theFileLocation to choose file with prompt "Please choose an HTML file to be sent:" tell application "Mail" activate set theFile to open for access theFileLocation without write permission set theHTMLContent to (read theFile from 1 to (get eof theFile)) as styled text close access theFileLocation log class of theHTMLContent set the_message to make new outgoing message at beginning with properties ¬ {subject:"the_subject", visible:true, content:theHTMLContent} tell the_message set theName to "Some Body" make new to recipient at end of to recipients with properties {name:theName, address:theAddress} end tell end tell end tell
I saw a script somewhere that used the construct: tell the_message set html content to theHTMContent end tell
But that doesn't work, and isn't in the dictionary.
Anyone? Thanks. Jim Weisbin human 138 5th avenue. 3rd floor, nyc, ny 10011 telephone 212 352 0211 facsimile 212 352 0210
|