Not quite your wish, but I recently hacked up another solution using an Applescript-based approach. Unlike other versions I'd found, this approach can be made passwordless. See the gist below and the first comment that describes passwordless operation:
https://gist.github.com/jwhitley/8377268
This can be invoked effortlessly from tools like LaunchBar or FastScripts.
Credit to @robjwells, whose original gist I forked and modified to be passwordless.
Credit to @robjwells, whose original gist I forked and modified to be passwordless.