found this macro, uses AppleScript and KM:
and another one:
additionally, you could also add a Periodic Trigger to the macro, to run a macro it every minute/second/hour/day/etc
For more information, see the wiki Searching the Forum for Answers section.