Hi Cliff, I struggled with this too. I'm afraid I can't remember all the details, but I think that one key point is that you need to have an "outgoing message" to respond to send. You may need to add your draft message to the mail apps "outgoing messages" before it can be sent. Try something like
mail.outgoingMessages.addObject(draft) Steve On 23 Oct 2012, at 07:06, Cliff Rosson <cliff.ros...@gmail.com> wrote: > > My drafts folder has 1 message in it ready to be sent. > > mail = SBApplication.applicationWithBundleIdentifier("com.apple.mail") > my_account = mail.accounts.select { |account| account.name == "MyAccountName" > }.first > drafts_folder = my_account.mailboxes.select { |mailbox| mailbox.name == > "Drafts" }.first > draft = drafts_folder.messages.first > > I need to use the send method somehow. I think I need to make a new > MailOutgoingMessage but I would like to make this message based on my already > existing draft message. > > Any know how this is done?
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macruby-devel