On 13 Jan, 14:05, Achim Domma <do...@[EMAIL PROTECTED]
> wrote:
> On 29 Dez. 2007, 14:21, has <has.te...@[EMAIL PROTECTED]
> wrote:
>
> > Doesn't have one. There are various workarounds/solutions to this, but
> > since you already know Python the easiest thing would just be to use
> > that. Example:
>
> Thanks a lot! This works like a charm andappscriptlooks much better
> to me than apple script. Is there an easy way to start this script
> automatically from within mail? For example via a button click or each
> time there are new items in the spam folder?
Mail rules have an option to trigger AppleScripts on incoming mail
which works with any compiled OSA script. There's a developer release
of PyOSA on the appscript site which is fairly usable with care (usual
caveats apply, of course). Do***entation's thin, but there's a basic
Mail rule example script included.
There's also some third-party gizmo that lets you activate Mail rules
with a key-press, although I forget the name.
Alternatively, you could activate the system-wide script menu (/
Applications/AppleScript/AppleScript Utility.app) which works with
shell scripts as well as AppleScripts and chuck your existing .py
script into ~/Libraries/Scripts
HTH
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org


|