How to Create a Personalized HTML Email Signature


| How-To

TerminalTime™

Now it’s time to head into the Terminal. Apple Mail signatures are saved as special files with the .mailsignature extension. These aren’t easy to find when browsing in Finder, even if you show hidden files. Instead, it’s much easier to use Terminal.

Since we used iCloud to save the signature, the code you can copy and paste is:

ls -laht ~/Library/Mobile\ Documents/com~apple~mail/Data/V4/Signatures/
Finding the mail signature files in Terminal to create an HTML email signature.

Listing the .mailsignature files

This will bring up a list of email signature code. Your most recently created signature will be at the top of the list, ending with .mailsignature. Now, we’re going to open those files in TextEdit with the following command:

open -a TextEdit ~/Library/Mobile\ Documents/com~apple~mail/Data/V4/Signatures/*.mailsignature

This will open TextEdit with each .mailsignature file. If you have more than one signature, more than one TextEdit tab will open. Find the one that matches the corresponding most recent file in Terminal. For me, I have to search for the one that begins with 6BC. It will probably be the first tab.

Remember when we used PLACEHOLDER TEXT? It should be easy to find in the TextEdit window, so you know you have the correct one.

Opening the mail signature file in TextEdit to create an HTML email signature.

The placeholder text lets me know I have the correct file

3
Leave a Reply

Please Login to comment
2 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
BarrySAndrew OrrJohn Kheit Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
BarryS
Member
BarryS

There is an easier way. I use TextEdit to create my signature (fonts and colors), then go to Signatures in Mail, create a new one, paste it in, and that’s that.

John Kheit
Member
John Kheit

Wow, super job Andrew! Sad that Apple doesnt let you do this easier, but really appreciate you showing us the flaming hoops!