I have a little automator script that creates an email.

This works. I would however like to add a specific signature to the email.

The signature is called "Default Sig".

I tried this, but it doesn't work. How can I implement this?

Thanks - Joseph enter image description here

  • 1
    Why down vote this question? I was not able to find a similar one... And Google searching did not yield any results either. – Joseph Jul 1 '18 at 6:50
  • Check input in your AppleScript to ensure it is a single message and not a list of messages – or maybe some other type entirely? Does the AppleScript work from Script Editor when passed a message? – Graham Miln Jul 1 '18 at 11:25
  • Is the Default Sig set in Mail app? You can always use a Ask Text action with a default value. – user14492 Jul 1 '18 at 11:57
  • @user14492 The signature I want to use is named exactly like that "Default Sig". – Joseph Jul 1 '18 at 13:58
  • @GrahamMiln I am not sure how I can test that? can I add breakpoints? These are the only two actions in the little "app". Nothing gets dragged onto the app, so there shouldn't be any other inputs. – Joseph Jul 1 '18 at 13:59

signature is not a scriptable property of message

Mail.app's AppleScript dictionary does not list a signature within the message object. Thus it can not be set.

Mail OSA dictionary

Using AppleScript to create and send a message

You must append the signature yourself within the AppleScript. See AppleScript/Automate Mail Tasks for sample AppleScripts to create, combine, and send messages.

Graphic User Interface (GUI) Scripting

While less reliable, you could try scripting the GUI to select the signature.

  • That it is not part of the framework fits to the observation, that the new message pops up before it goes to the Run AppleScript step. Is there a way for me to toggle the dropdownfield as a second step? – Joseph Jul 1 '18 at 14:46
  • Consider asking this as a new question. It appears Mail on macOS 10.13 does not permit scripted access to the signatures. This is likely a bug. Fully AppleScript or GUI is the likely next step. Good luck! – Graham Miln Jul 1 '18 at 14:50
  • 1
    Thanks for your effort with my question! Have a good day! – Joseph Jul 1 '18 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .