• 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
Setting signatures in Mail in El Capitan and Sierra
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting signatures in Mail in El Capitan and Sierra


  • Subject: Setting signatures in Mail in El Capitan and Sierra
  • From: Christian Boyce <email@hidden>
  • Date: Sun, 04 Mar 2018 22:24:09 -0800

Howdy. I'm trying to automate Mail. It's easy for me to create a message with a
subject, a body, a sender, and a recipient, but I can't figure out how to
assign a signature. It was easier in previous systems (such as 10.7.5).

Here is what I have so far:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set theDate to current date
set theTime to time string of theDate

tell application "Mail"
        set the_sender to "email@hidden <mailto:email@hidden>"
        set the_subject to theTime
        set the_body to "body goes here"
        set the_recipient to "email@hidden
<mailto:email@hidden>"
        --set the_signature to signature "Christian Boyce"
        --
        set theMessage to (make new outgoing message with properties
{subject:the_subject, content:the_body})
        --
        tell theMessage
                set visible to true
                make new to recipient at end of to recipients with properties
{name:the_recipient}
                --set my signature to the_signature
        end tell
end tell


This works great to make an email but I can't automate the signature. If I
uncomment the two lines that refer to the_signature, the script won't run. I do
have a signature called "Christian Boyce." This script was running on an older
Mac with 10.7.5 on it and it worked there. Today I replaced that machine with
one running 10.11.6 and the script no longer works. Any suggestions? Thank you
in advance.



 _______________________________________________
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: Setting signatures in Mail in El Capitan and Sierra
      • From: Hermann BRILLANT <email@hidden>
  • Prev by Date: Golf List Picker...
  • Next by Date: Re: Setting signatures in Mail in El Capitan and Sierra
  • Previous by thread: Re: Golf List Picker...
  • Next by thread: Re: Setting signatures in Mail in El Capitan and Sierra
  • Index(es):
    • Date
    • Thread