AppleScript as event handler in Mail
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