• 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: Wed, 27 Jan 2010 20:45:23 -0800

Brian,

I agree with you that Applescript works well  with the command allowed in  your script.  

tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:MainMailRecipient, subject:the_subject, attachment:LogoPath, content:the_content}
tell newMessage
…
send
end tell
end tell


Following a command to make new outgoing message such as 



tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:MainMailRecipient, subject:the_subject, attachment:LogoPath, content:the_content}


the  identity of the outgoing message or established by Applescript. The problem I have encountered,  occurs  when an outgoing message is created by other means such as a non applescript user interface command  of 

 clicking on New Message menu item  dropped down from the File menu bar in Mail.app 



or by the applescript command in Safari 

tell application "Safari"
email contents of (get current tab of window 1)
end tell



After either command that creates a new outgoing message absent 

make new outgoing message with properties 


Applescript, at least from my perspective, fails to be able to  execute the 

send

command to  the outgoing  message even though it can add  an addressee  to the "To:"  field. 


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

 
In essence, I want to have Applescript send an email that was created  absent its 

make new outgoing message with properties


command. 

Thanks for your help.

Alan 



 _______________________________________________
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: Axel Luttgens <email@hidden>
References: 
 >Fwd: Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)
 >Re: Send outgoing message error from Mail.app (From: Brian Christmas <email@hidden>)
 >Re: Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)
 >Re: Send outgoing message error from Mail.app (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Substitute for 'ticks'?
  • Next by Date: Fwd: 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