[TxMt] create email from document
Brett Terpstra
brett at circlesixdesign.com
Mon Nov 6 21:23:56 UTC 2006
Just a thought, but if TM saved the file before running the command,
applescript could just read the file off the disk and preserve the
formatting perfectly in the message:
set a to "/Users/Brett/Desktop/test.txt"
set theFile to POSIX file a
open for access theFile
set theBody to (readtheFile)
close access theFile
tell application "Mail"
set new_mess to make new outgoing message with properties
{content:theBody, visible:true}
activate
end tell
On Nov 6, 2006, at 2:45 PM, Ale Muñoz wrote:
> Here's the AppleScript code to create a new email:
>
[...]
More information about the textmate
mailing list