• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Send outgoing message error from Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send outgoing message error from Mail.app


  • Subject: Re: Send outgoing message error from Mail.app
  • From: Alan Kimelman <email@hidden>
  • Date: Tue, 26 Jan 2010 13:38:07 -0800

Karen,

The script that you sent works well. Your script creates an outgoing message and sends it.
 I, however, am trying to send an outgoing message that I have previously created but have  not sent. 
As such, I targeted the last one of my outgoing messages 

item -1 of ((every outgoing message)).

Applescripts succeeds with that  command

make new to recipient at beginning of to recipients ¬
with properties {address:"Foo Goo <email@hidden>", «class rdsn»:"FirstName LastName"}

and Mail.app shows  the outgoing message with the new address inserted into the To: field.

So, it appears that  although I have identified the correct outgoing message, the command

tell application "Mail" to send a_message  

does not work and triggers 

"Mail got an error: outgoing message id 2 doesn’t understand the send message." number -1708 from outgoing message id 2.

Do you have any other ideas? Thanks.

On Jan 26, 2010, at 1:00 PM, Nielsen, Karen S. (Schmidt) wrote:

This is what I do.  I have the send command within the tell statement for the message.
 
tell application "Mail"
  set newMessage to make new outgoing message with properties {subject:theSubject, content:theContent}
  tell newMessage
   set countrecipients to number of items in EMailAddressList
   repeat with c from 1 to countrecipients
    make new to recipient at end of to recipients with properties {address:(item c of EMailAddressList)}
   end repeat
   set sender to "email@hidden"
   send
  end tell
 
---------------
Karen Nielsen
IT Project Manager
schmidt
print solutions that deliver
ph | 507.775.7308
fx | 507.775.6655
FSC Certified Printer
 


From: applescript-users-bounces+ksnielsen=email@hidden [mailto:applescript-users-bounces+ksnielsen=email@hidden] On Behalf Of Alan Kimelman
Sent: Tuesday, January 26, 2010 2:55 PM
To: email@hidden
Subject: [BULK] Re: Send outgoing message error from Mail.app
Importance: Low

Applescript returns the same message. 
I followed your advice and  ran the corrected script with send a_message as a command of the Mail app, rather than as a command of the outgoing message.
The events and replies pane of the applescript window returned the following:

tell application "Mail"
get last item of every outgoing message
--> outgoing message id 39
make new to recipient at beginning of every to recipient of outgoing message id 39 with properties {address:"Foo Goo <email@hidden>", «class rdsn»:"FirstName LastName"}
--> «class of outgoing message id 39
send outgoing message id 39
--> error number -1708

Result:

error "Mail got an error: outgoing message id 39 doesn’t understand the send message." number -1708 from outgoing message id 39


It appears that the same error is generated. I am perplexed.


On Jan 26, 2010, at 12:36 PM, Michelle Steiner wrote:

tell application "Mail"
set a_message to item -1 of ((every outgoing message))
tell a_message
make new to recipient at beginning of to recipients ¬
with properties {address:"Foo Goo <foo.goo@gmail.com>", «class rdsn»:"FirstName LastName"}
end tell
        send a_message
end tell



 _______________________________________________
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

  • Follow-Ups:
    • RE: Send outgoing message error from Mail.app
      • From: "Nielsen, Karen S. (Schmidt)" <email@hidden>
References: 
 >Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)
 >Re: Send outgoing message error from Mail.app (From: Michelle Steiner <email@hidden>)
 >Re: Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)
 >RE: [BULK] Re: Send outgoing message error from Mail.app (From: "Nielsen, Karen S. (Schmidt)" <email@hidden>)

  • Prev by Date: Re: Scripting the unscriptable
  • Next by Date: Re: Scripting the unscriptable
  • Previous by thread: RE: [BULK] Re: Send outgoing message error from Mail.app
  • Next by thread: RE: Send outgoing message error from Mail.app
  • Index(es):
    • Date
    • Thread