• 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: Has Mail got a problem in El Capitan?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has Mail got a problem in El Capitan?


  • Subject: Re: Has Mail got a problem in El Capitan?
  • From: Brian Christmas <email@hidden>
  • Date: Sun, 01 Nov 2015 15:33:34 +1100


Thanks Wayne, but that doesn't seem to make any difference, unless two x 2 second delays aren’t enough?

Regards

Santa


1 Nov 2015, at 4:15 PM, Wayne Melrose <email@hidden> wrote:

The amazing Shane Stanley saved me with the tip of a delay before the send step. My script was failing to send with attachments. 


Shane thought it might be get have something to do with the animation added to creating/sending an email. 

Try a delay after creating but before formatting? But hacky, but worked for me. 


Sent from my iPhone


tell application "Mail"
activate
set p to 4
set newMessage to make new outgoing message with properties {visible:true, subject:the_subject, content:the_content}
set p to 5
do shell script ("sleep 2")
tell content of newMessage
do shell script ("sleep 2")
try
set y to count of the_content
set color of characters 1 thru y to textcolor
end try
try
set x to offset of my theBusinessName in the_content
set font of characters x thru (x + (count of my theBusinessName) - 1) to "Helvetica Bold"
set color of characters x thru (x + (count of my theBusinessName) - 1) to {56342, 2442, 607}
end try


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Has Mail got a problem in El Capitan? (From: Brian Christmas <email@hidden>)
 >Re: Has Mail got a problem in El Capitan? (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Has Mail got a problem in El Capitan?
  • Previous by thread: Re: Has Mail got a problem in El Capitan?
  • Index(es):
    • Date
    • Thread