How to Create a Personalized HTML Email Signature


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:

Don’t miss the best of The Mac Observer

Set us as a preferred source and our Apple reporting ranks higher in your Google Search results and Discover feed — one tap, no account changes.

Or get it by email
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

Discussion

3 comments
Newest first
Join the discussionCommenting as a guest — your email is never published · Log in

Protected by Akismet — be kind, stay on topic.

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

  1. Neil Ashley Subscriber 8 years ago

    What an absolutely bloody fantastically clear guide to doing this. Thank you so much. Brilliant!

    Reply
  2. John Kheit 9 years ago

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

    Reply
    1. Andrew Orr Author 9 years ago

      Thanks John, this was a bit more complex than I thought at first!

      Reply