adamrice wrote:
Since the calculator plugin seems to have died, and services are no
longer accessible, I've been trying to replicate calculator
functionality in QS through an Applescript action. Here's what I've
come up with:

using terms from application "Quicksilver"
        on process text inputText
                do shell script "echo " & inputText & " | bc | qs"
        end process text
end using terms from

It compiles OK, but it doesn't work: Quicksilver hangs when I invoke
this action. I've got the command-line too installed. The shell-script
line itself seems OK: if I type
  echo 1+2 | bc | qs
into the terminal, Quicksilver pops up with "3" in the first pane.

Shell script waits for Quicksilver to show the results (that you piped into it) and Quicksilver waits for the shell script to finish. That's the reason, it doesn ot work. Does the services menu in Snow Leopard have a shortcut like Cmd+* to "Show Result of Applescript" under Script Editor sub-menu? If there is, then you can write somethings like 3+4, select it and press the shortcut and the result will be displayed.

Reply via email to