Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Adding attachments into front outgoing message of Apple Mail.app
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="wlan" data-source="post: 1787261" data-attributes="member: 398551"><p>Hi ALL,</p><p></p><p>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.</p><p></p><p>[code]</p><p>set newMessage to (a reference to (make new outgoing message))</p><p>tell newMessage</p><p>tell content</p><p> repeat with theItem in argv</p><p> set filename to theItem as POSIX file</p><p> make new attachment ¬</p><p> with properties {file name:filename} ¬</p><p> at after the last word of the last paragraph</p><p> end repeat</p><p> end tell</p><p> set visible to true</p><p> end tell</p><p>[/code]</p><p></p><p>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?</p><p></p><p></p><p>Thanks!!!</p></blockquote><p></p>
[QUOTE="wlan, post: 1787261, member: 398551"] 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. [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 [/code] 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!!! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Adding attachments into front outgoing message of Apple Mail.app
Top