• 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 14:31:58 -0800

Karen,

It is strange. Outgoing message is Mail appears to have different properties in regard to the send command. It responds to your script of  make new outgoing message 
 but does not respond  to an outgoing message that was made by other means. 

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

Does the new message have the same name as the old message?  Just wondering if saying "send a_message" is causing a problem.  Can you just say send?  Otherwise maybe you need to "set a_message to make new message".
 
I know that caused problems for me before.
 
---------------
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 3:38 PM
To: email@hidden
Subject: Re: Send outgoing message error from Mail.app

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: Luther Fuller <email@hidden>
    • Re: Send outgoing message error from Mail.app
      • From: Doug McNutt <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>)
 >Re: Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)
 >RE: Send outgoing message error from Mail.app (From: "Nielsen, Karen S. (Schmidt)" <email@hidden>)

  • Prev by Date: RE: Send outgoing message error from Mail.app
  • Next by Date: Re: Send outgoing message error from Mail.app
  • Previous by thread: RE: Send outgoing message error from Mail.app
  • Next by thread: Re: Send outgoing message error from Mail.app
  • Index(es):
    • Date
    • Thread