Sunday, December 17, 2017

#1 2002-03-11 08: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:

Applescript:

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??
Thanks.


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)