Adding attachments into front outgoing message of Apple Mail.app
Adding attachments into front outgoing message of Apple Mail.app
- Subject: Adding attachments into front outgoing message of Apple Mail.app
- From: Maju M <email@hidden>
- Date: Wed, 28 Feb 2018 14:45:52 +0000 (UTC)
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.
set newMessage to (a reference to (make new outgoing message))tell
newMessagetell 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!!!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden