Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to run a script whenever the user tries to send mail? I'm particularly interested in ensuring that outbound mail doesn't have a blank subject line.

Solutions that involve plug-ins are welcome!

share|improve this question
up vote 1 down vote accepted

It looks like there's no easy way to do this via AppleScript, however there's a plugin that warns in case of blank subject, it's Subjectivity. It works only with Tiger, since Leopard and Snow Leopard's Mail.app warns you if you leave subject blank.

I found this blog post on writing Mail plugins, however I didn't try to write one.

share|improve this answer
    
It works. And the source is nice, easy to read Python code, which I think I can use for other kinds of scripting. – Charles Stewart May 31 '10 at 8:54

You must log in to answer this question.

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