Semi-automated apple mail HTML signature installer
Easily install HTML signatures in Apple Mail without fiddling around in hidden folders 😍
New Check out the GUI application of signato: siganto app is even better
Create your HTML signature. Notice the limited support of certain CSS techniques in mail clients and place only the body
tag and it's children in your signature HTML file for Apple Mail. Inline all style attributes, probably using a tool like CSS Inliner.
Open Apple Mail and create a new signature. Place a placeholder text in that signature. Signato by default looks for (signato)
. It's recommended to remove everything else from the signature content. Choose a proper name for the new signature.
- Download the latest version of signato and unzip it.
- Place your HTML signature named signature.html next to the
signato.sh
script or reference it using the-s file
parameter. - Open a terminal and navigate to the signato script
(How to open and navigate in the terminal) - Run the script by typing
./signato.sh
and pressing [Enter] - Answer the on-screen question about iCloud synced signatures or local ones and watch the "magic" happen ;)
For local signatures the respective file on your disk will be locked to prevent Apple Mail from reverting the content change. As a consequence you are not capable of editing HTML signature installed with signato via the settings menu in Apple Mail any longer (other signatures will work fine).
However, you may create an updated version of your HTML signature and use signato to adjust the signature in Apple Mail. Use a custom placeholder text (-p
parameter) to let signato find the oudated signature you want to change. You could for example change it to your position title which might be mentioned in the old HTML signature.
Example: look for a signature with the text Head of Tech in it and replace the signature with the one from the specified HTML file
./signato.sh -s "updatedHTMLSignature.html" -p "Head of Tech"
To properly delete the signature the file must be unlocked. Close Apple Mail. Run signato with the -u
flag and a custom -p
placeholder that matches the contents of your signature. You may now open Apple Mail again and delete the signature using the "minus" button in the settings.
Example: Unlock all signatures that contain the text "Old company" and unlock the files:
./signato.sh -u -p "Old company"
Somehow the attribute that the signato.sh file is an executable file got lost. Restore that by executing chmod +x signato.sh
and try again.
signato is an imperative form of the latin word "signāre" meaning "sign" or "seal".
Parameter | Description | Default |
---|---|---|
-s "filename" |
File that contains the HTML signature | signature.html |
-p "placeholder" |
String to be searched for in existing signatures to identify the signature that should be replaced | (signato) |
-u |
Do not replace any signature content, just unlock the matched files | false |
Thanks to Matt Coneybeare (@coneybeare) for his blog post on how to make a custom HTML signature in Apple Mail.