Thursday, February 22, 2018

#1 2002-03-11 07:47:53 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

scripting OS X Mail app

Using AppleScript to send a file attachment with OSX Mail app...
I am using the script which can be found on the Apple web site to send a JPG file as a file attachment.
It appears to be intended for only sending text (or so I am guessing).
Part of that script is:


tell content
repeat with aFile in fileList
make new text attachment with properties {file name:fileAttachThis} at before the first word of the first paragraph
end repeat
end tell

It will display the JPG in the body of the email - that is great for my purpose.
But the following text gets placed into the email message and I'd like to not have it appear:

Any suggestions??

One mans trash is another mans treasure



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)