Create new Mail.app templates via AppleScript

Jan 11, '05 08:57:00AM

Contributed by: masolino

The following scripts are for use in Mail.app as message templates. With these scripts, you can reply to a message with a message from a template containing your text combined with customizable variables. Or you could create a new message with predefined text in the subject and body. You can customize the templates to show these variables in resulting messages:

  1. Date sent
  2. Sender Name
  3. Sender Address
  4. Subject
  5. Body
To use these scripts, copy and paste in Script Editor and Save as Script with a name you like in /Library -> Scripts -> Mail Scripts. Now, for example, to reply to a received message, choose the script name from Mail's Script menu after selecting the message in Mail.app. The four scripts are:
  1. Text of reply before quoted text
  2. Text of reply after quoted text
  3. Outlook-style reply
  4. New message with attachments
[robg adds: I haven't tested these...]

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050106192700742