Hi ALL,
I want to add attachments into mail compose window of Apple Mail.app. If compose window is already open, then i want to add attachments into existing draft window / outgoing message window.
The above code snippet always opens a new mail compose window and add attachments into that window. How do I add attachments into existing outgoing message window?
Thanks!!!
I want to add attachments into mail compose window of Apple Mail.app. If compose window is already open, then i want to add attachments into existing draft window / outgoing message window.
Code:
set newMessage to (a reference to (make new outgoing message))
tell newMessage
tell content
repeat with theItem in argv
set filename to theItem as POSIX file
make new attachment ¬
with properties {file name:filename} ¬
at after the last word of the last paragraph
end repeat
end tell
set visible to true
end tell
The above code snippet always opens a new mail compose window and add attachments into that window. How do I add attachments into existing outgoing message window?
Thanks!!!
Last edited by a moderator: