'Show in Finder' bug in 10.8.2, fix w/ Automator + Shell Script ?

Hi,

Not sure if anyone else out there has experienced this ‘Show in Finder’ bug in ML 10.8.2, (Google it, if need be) but it screws me up a lot. Not just in the Finder, but with other apps too: Lightroom, Name Mangler, etc.

The fix is to run this command in Terminal:
sudo killall -KILL appleeventsd

Too speed things up, I’m trying to run this as an Automator workflow or action, eventually to be an ‘Application’ ” but I can’t get past this error message:
sudo: no tty present and no askpass program specified

What am I missing here?
Thanks for you help!
~Kevin

Hello, what you may miss, is this end of your shell script line:

 >/dev/null 2>&1

This should make the shell script know that it isn’t waiting from anything for the tty. If you have taken actions to get access to the tty in your do shell script, then you must remove that, in order for your workflow to work.

By tty I mean direct access to the console window.