• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript as event handler in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript as event handler in Mail


  • Subject: AppleScript as event handler in Mail
  • From: ravi <email@hidden>
  • Date: Tue, 17 Apr 2007 18:54:34 -0400


Hello all,

I am new to AppleScript and am trying to grope my way to writing an outgoing mail filter for Apple Mail (Mail.app as some call it) with the ultimate plan of piping the message through 'procmail' before it is sent.

I assume this can be done using AppleScript, so please disabuse me of that notion if incorrect!

Typically (in the sample scripts) the script is triggered by the user explicitly choosing the script from the script menu, or by the script being attached to a rule. Is it possible for a script to register itself, in this case with Mail, providing a synchronous callback for certain events? As may be obvious, what I would like to do is find a hook by which Mail will invoke [a handler in] my script when the user clicks send, wait for the script to do its thing, and then send out the potentially modified message.

Any hints appreciated!

	--ravi

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Creeping-featuritis
  • Next by Date: Submitting Parameters
  • Previous by thread: Re: Creeping-featuritis
  • Next by thread: Submitting Parameters
  • Index(es):
    • Date
    • Thread